CRT: Avoid implicit char to unsigned char casts in strtoumax

Fixes -Wpointer-sign warnings.
This commit is contained in:
Jacek Caban committed 2026-08-10 15:05:26 +02:00
1 parent 4e9399e029
commit 720039ca6d
2 files changed
+2 -3

No files matched your search

+1 -2
View File
@@ -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;
+1 -1
View File
@@ -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;