summaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index 63e0e88d..9592a11a 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 2.21 2005/01/07 20:00:33 roberto Exp roberto $ 2** $Id: lvm.c,v 2.22 2005/01/10 18:17:39 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -47,7 +47,7 @@ int luaV_tostring (lua_State *L, StkId obj) {
47 if (!ttisnumber(obj)) 47 if (!ttisnumber(obj))
48 return 0; 48 return 0;
49 else { 49 else {
50 char s[32]; /* 16 digits, sign, point and \0 (+ some extra...) */ 50 char s[MAX_NUMBER2STR];
51 lua_number2str(s, nvalue(obj)); 51 lua_number2str(s, nvalue(obj));
52 setsvalue2s(L, obj, luaS_new(L, s)); 52 setsvalue2s(L, obj, luaS_new(L, s));
53 return 1; 53 return 1;