aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lobject.c b/lobject.c
index 6d283f2e..0b597ff1 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 1.68 2001/02/23 20:30:01 roberto Exp roberto $ 2** $Id: lobject.c,v 1.69 2001/03/07 12:27:06 roberto Exp roberto $
3** Some generic functions over Lua objects 3** Some generic functions over Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -10,6 +10,7 @@
10#include <stdlib.h> 10#include <stdlib.h>
11#include <string.h> 11#include <string.h>
12 12
13#define LUA_PRIVATE
13#include "lua.h" 14#include "lua.h"
14 15
15#include "ldo.h" 16#include "ldo.h"
@@ -44,7 +45,7 @@ void *luaO_openspaceaux (lua_State *L, size_t n) {
44} 45}
45 46
46 47
47int luaO_str2d (const l_char *s, lua_Number *result) { /* LUA_NUMBER */ 48int luaO_str2d (const l_char *s, lua_Number *result) {
48 l_char *endptr; 49 l_char *endptr;
49 lua_Number res = lua_str2number(s, &endptr); 50 lua_Number res = lua_str2number(s, &endptr);
50 if (endptr == s) return 0; /* no conversion */ 51 if (endptr == s) return 0; /* no conversion */