mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 11:00:19 +02:00
CRT: Avoid implicit char to unsigned char casts in strtoumax
Fixes -Wpointer-sign warnings.
This commit is contained in:
1 parent
4e9399e029
commit
720039ca6d
2 files changed
+2
-3
No files matched your search
@@ -6,8 +6,7 @@
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
|
||||
intmax_t strtoimax(const char* s1, char** p, int base) {
|
||||
const unsigned char* s = s1;
|
||||
intmax_t strtoimax(const char* s, char** p, int base) {
|
||||
int sign = 0;
|
||||
uintmax_t x;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ static const unsigned char digits[] = {
|
||||
};
|
||||
|
||||
uintmax_t strtoumax(const char* s1, char** p, int base) {
|
||||
const unsigned char* s = s1;
|
||||
const unsigned char* s = (const unsigned char*)s1;
|
||||
size_t x1, z1;
|
||||
uintmax_t x, z = 0;
|
||||
int sign = 0;
|
||||
|
||||
Reference in new issue
Block a user