mirror of
https://gittea.dev/nova/th.git
synced 2025-10-22 10:50:15 -04:00
cast to unsigned char for proper sorting
This commit is contained in:
@@ -28,8 +28,8 @@ int sort_natural(const void *file0_, const void *file1_){
|
|||||||
file *file0 = (file*)file0_;
|
file *file0 = (file*)file0_;
|
||||||
file *file1 = (file*)file1_;
|
file *file1 = (file*)file1_;
|
||||||
|
|
||||||
unsigned char *a = file0->file_name;
|
unsigned char *a = (unsigned char*)file0->file_name;
|
||||||
unsigned char *b = file1->file_name;
|
unsigned char *b = (unsigned char*)file1->file_name;
|
||||||
|
|
||||||
if (file0->file_type & (FILE_TYPE_SYMLINK | FILE_TYPE_DIR) && !(file1->file_type & (FILE_TYPE_SYMLINK | FILE_TYPE_DIR))) {
|
if (file0->file_type & (FILE_TYPE_SYMLINK | FILE_TYPE_DIR) && !(file1->file_type & (FILE_TYPE_SYMLINK | FILE_TYPE_DIR))) {
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user