make style

This commit is contained in:
Oleg Moiseenko committed 2025-09-21 16:41:30 +03:00
1 parent b944315001
commit 944a80d217
26 files changed
+318 -318

No files matched your search

+2 -2
View File
@@ -63,7 +63,7 @@ static const char *b_str2int(const char *s, int base, lua_Integer *pn) {
s += strspn(s, SPACECHARS); /* skip initial spaces */
if (*s == '-') { s++; neg = 1; } /* handle sign */
else if (*s == '+') s++;
if (!isalnum((unsigned char)*s)) /* no digit? */
if (!isalnum((unsigned char) * s)) /* no digit? */
return NULL;
do {
int digit = (isdigit((unsigned char) * s)) ? *s - '0'
@@ -71,7 +71,7 @@ static const char *b_str2int(const char *s, int base, lua_Integer *pn) {
if (digit >= base) return NULL; /* invalid numeral */
n = n * base + digit;
s++;
} while (isalnum((unsigned char)*s));
} while (isalnum((unsigned char) * s));
s += strspn(s, SPACECHARS); /* skip trailing spaces */
*pn = (lua_Integer)((neg) ? (0u - n) : n);
return s;