summaryrefslogtreecommitdiffstats
path: root/apps/plugins/lua/strtol.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/strtol.c')
-rw-r--r--apps/plugins/lua/strtol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lua/strtol.c b/apps/plugins/lua/strtol.c
index 3dd29b6b57..564494643d 100644
--- a/apps/plugins/lua/strtol.c
+++ b/apps/plugins/lua/strtol.c
@@ -9,12 +9,12 @@ long int strtol(const char *nptr, char **endptr, int base)
unsigned long int v;
const char*orig=nptr;
- while(isspace(*nptr)) nptr++;
+ while(__unlikely(isspace(*nptr))) nptr++;
if (*nptr == '-' && isalnum(nptr[1])) { neg=-1; ++nptr; }
v=strtoul(nptr,endptr,base);
if (endptr && *endptr==nptr) *endptr=(char *)orig;
- if (v>=ABS_LONG_MIN) {
+ if (__unlikely(v>=ABS_LONG_MIN)) {
if (v==ABS_LONG_MIN && neg) {
errno=0;
return v;