libluna: Use the right unsigned integer type for wcscmp()'s return type

This commit is contained in:
apio 2023-07-25 17:23:27 +02:00
parent 105ed79f8f
commit 9bb3fed611
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -81,7 +81,8 @@ extern "C"
a++; a++;
b++; b++;
} }
return *(const u8*)a - *(const u8*)b; static_assert(sizeof(wchar_t) == sizeof(u32));
return *(const u32*)a - *(const u32*)b;
} }
int strncmp(const char* a, const char* b, usize max) int strncmp(const char* a, const char* b, usize max)