From 36e8771076705d33261a88a3c144967b1840671a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 14 May 2013 12:59:04 -0300 Subject: 'luaO_str2int' more generic: accepts white spaces around the numeral and handles signal --- lobject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 45c34c14..769e96db 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 2.76 2013/05/02 12:37:24 roberto Exp roberto $ +** $Id: lobject.h,v 2.77 2013/05/06 17:17:09 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -496,7 +496,7 @@ LUAI_FUNC int luaO_ceillog2 (unsigned int x); LUAI_FUNC void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2, TValue *res); LUAI_FUNC int luaO_str2d (const char *s, size_t len, lua_Number *result); -LUAI_FUNC int luaO_str2int (const char *s, lua_Integer *result); +LUAI_FUNC int luaO_str2int (const char *s, size_t len, lua_Integer *result); LUAI_FUNC int luaO_hexavalue (int c); LUAI_FUNC const char *luaO_pushvfstring (lua_State *L, const char *fmt, va_list argp); -- cgit v1.2.3-55-g6feb