/
index
/
single-header-libcext.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
inline
| side by side (parent:
28d64df
)
strtonum: fix `TOOLARGE` macro name
master
author
git
<redacted>
Mon, 18 May 2026 15:48:12 +0000
(11:48 -0400)
committer
git
<redacted>
Mon, 18 May 2026 15:48:12 +0000
(11:48 -0400)
strtonum.h
patch
|
blob
|
history
diff --git
a/strtonum.h
b/strtonum.h
index 2cea7dc86a7d22163bd3cf4f111434dd7085329b..471aea8b4bf7b766edc4d965433488946b44162b 100644
(file)
--- a/
strtonum.h
+++ b/
strtonum.h
@@
-34,7
+34,7
@@
long long i_strtonum_(const char *numstr, long long minval, long long maxval,
#ifdef STRTONUM_IMPLEMENTATION
#define I_INVALID_ 1
#define I_TOOSMALL_ 2
#ifdef STRTONUM_IMPLEMENTATION
#define I_INVALID_ 1
#define I_TOOSMALL_ 2
- #define I_TOOLARGE
3
+ #define I_TOOLARGE
_
3
long long
i_strtonum_(const char *numstr, long long minval, long long maxval,
long long
i_strtonum_(const char *numstr, long long minval, long long maxval,
@@
-64,7
+64,7
@@
i_strtonum_(const char *numstr, long long minval, long long maxval,
else if ((ll == LLONG_MIN && errno == ERANGE) || ll < minval)
error = I_TOOSMALL_;
else if ((ll == LLONG_MAX && errno == ERANGE) || ll > maxval)
else if ((ll == LLONG_MIN && errno == ERANGE) || ll < minval)
error = I_TOOSMALL_;
else if ((ll == LLONG_MAX && errno == ERANGE) || ll > maxval)
- error = I_TOOLARGE;
+ error = I_TOOLARGE
_
;
}
if (errstrp != NULL)
*errstrp = ev[error].errstr;
}
if (errstrp != NULL)
*errstrp = ev[error].errstr;