From 4894c2796277b47b0ffc8983e8231d2cc95ee09b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 4 Dec 2000 16:33:40 -0200 Subject: lua_Number defined in lua.h (1st version) --- lobject.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lobject.c') diff --git a/lobject.c b/lobject.c index 9e6504ab..5f9876c0 100644 --- a/lobject.c +++ b/lobject.c @@ -1,5 +1,5 @@ /* -** $Id: lobject.c,v 1.55 2000/10/20 16:36:32 roberto Exp roberto $ +** $Id: lobject.c,v 1.56 2000/11/24 17:39:56 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ @@ -65,9 +65,9 @@ char *luaO_openspace (lua_State *L, size_t n) { } -int luaO_str2d (const char *s, Number *result) { /* LUA_NUMBER */ +int luaO_str2d (const char *s, lua_Number *result) { /* LUA_NUMBER */ char *endptr; - Number res = lua_str2number(s, &endptr); + lua_Number res = lua_str2number(s, &endptr); if (endptr == s) return 0; /* no conversion */ while (isspace((unsigned char)*endptr)) endptr++; if (*endptr != '\0') return 0; /* invalid trailing characters? */ -- cgit v1.2.3-55-g6feb