diff --git a/libluna/src/CString.cpp b/libluna/src/CString.cpp index fc66de79..b4ffd864 100644 --- a/libluna/src/CString.cpp +++ b/libluna/src/CString.cpp @@ -81,7 +81,8 @@ extern "C" a++; 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)