diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 17:28:26 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-02-23 17:28:26 -0300 |
commit | a90f06dcd84ba2bc7572e5d6202f5123027110ca (patch) | |
tree | 7247fe46e9b5c935cb3a797aa2ffe89de6d9333e | |
parent | 35023355f21d2c508e2614dc8383d7535dd3a80a (diff) | |
download | lua-a90f06dcd84ba2bc7572e5d6202f5123027110ca.tar.gz lua-a90f06dcd84ba2bc7572e5d6202f5123027110ca.tar.bz2 lua-a90f06dcd84ba2bc7572e5d6202f5123027110ca.zip |
`atoi' does not have a wide-char equivalent
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.62 2001/02/23 17:17:25 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.63 2001/02/23 17:28:12 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -294,7 +294,7 @@ static int handle_argv (l_char *argv[], struct Options *opt) { | |||
294 | 294 | ||
295 | static void getstacksize (int argc, l_char *argv[], struct Options *opt) { | 295 | static void getstacksize (int argc, l_char *argv[], struct Options *opt) { |
296 | if (argc >= 2 && argv[1][0] == l_c('-') && argv[1][1] == l_c('s')) { | 296 | if (argc >= 2 && argv[1][0] == l_c('-') && argv[1][1] == l_c('s')) { |
297 | int stacksize = atoi(&argv[1][2]); | 297 | int stacksize = strtol(&argv[1][2], NULL, 10); |
298 | if (stacksize <= 0) { | 298 | if (stacksize <= 0) { |
299 | fprintf(stderr, l_s("lua: invalid stack size ('%.20s')\n"), &argv[1][2]); | 299 | fprintf(stderr, l_s("lua: invalid stack size ('%.20s')\n"), &argv[1][2]); |
300 | exit(EXIT_FAILURE); | 300 | exit(EXIT_FAILURE); |