diff --git a/uppsrc/Core/Ops.h b/uppsrc/Core/Ops.h index 15e63643b..d9d2884b5 100644 --- a/uppsrc/Core/Ops.h +++ b/uppsrc/Core/Ops.h @@ -273,7 +273,7 @@ int fast_memcmp(const char *a, const char *b, size_t len) b += 2; } if((len & 1) != 0 && *a != *b) - return *a < *b ? -1 : 1; + return (byte)*a < (byte)*b ? -1 : 1; return 0; } #else