mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-12 02:09:17 +00:00
fix cctype usage
According to the documentation, we should cast to unsigned char. Anything negative is undefined behavior.
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#include <pthread.h>
|
||||
#elif defined(ANDROID)
|
||||
#include "util/cctype.hpp"
|
||||
#endif
|
||||
|
||||
LOG_CHANNEL(jit_log, "JIT");
|
||||
@@ -1039,7 +1041,7 @@ const char * fallback_cpu_detection()
|
||||
return "cortex-a78";
|
||||
}
|
||||
|
||||
std::transform(result.begin(), result.end(), result.begin(), ::tolower);
|
||||
std::transform(result.begin(), result.end(), result.begin(), utils::tolower<char>);
|
||||
return result;
|
||||
}();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user