Changeset 217 for trunk/lib/lua/lbaselib.c
- Timestamp:
- 01/10/10 18:39:28 (2 years ago)
- Files:
-
- 1 modified
-
trunk/lib/lua/lbaselib.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/lua/lbaselib.c
r14 r217 97 97 unsigned long n; 98 98 luaL_argcheck(L, 2 <= base && base <= 36, 2, "base out of range"); 99 n = strto l(s1, &s2, base);99 n = strtoul(s1, &s2, base); 100 100 if (s1 != s2) { /* at least one valid digit? */ 101 101 while (isspace((unsigned char)(*s2))) s2++; /* skip trailing spaces */