diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-03 10:20:33 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-04-03 10:20:33 -0300 |
commit | e30327728ca4efc3fb8591cf3ea0b65cafbd907a (patch) | |
tree | 752be896712fd2b84be6fd6b48904319a48a3c19 /lbuiltin.c | |
parent | 36e1390631a4b89f0a8a3111978780de0d53466c (diff) | |
download | lua-e30327728ca4efc3fb8591cf3ea0b65cafbd907a.tar.gz lua-e30327728ca4efc3fb8591cf3ea0b65cafbd907a.tar.bz2 lua-e30327728ca4efc3fb8591cf3ea0b65cafbd907a.zip |
BUG: tostring() without arguments gives seg. fault.
Diffstat (limited to 'lbuiltin.c')
-rw-r--r-- | lbuiltin.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.99 2000/03/27 20:10:21 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.100 2000/03/29 20:19:20 roberto Exp roberto $ |
3 | ** Built-in functions | 3 | ** Built-in functions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -371,7 +371,7 @@ void luaB_next (lua_State *L) { | |||
371 | 371 | ||
372 | 372 | ||
373 | void luaB_tostring (lua_State *L) { | 373 | void luaB_tostring (lua_State *L) { |
374 | lua_Object o = lua_getparam(L, 1); | 374 | lua_Object o = luaL_nonnullarg(L, 1); |
375 | char buff[64]; | 375 | char buff[64]; |
376 | switch (ttype(o)) { | 376 | switch (ttype(o)) { |
377 | case TAG_NUMBER: | 377 | case TAG_NUMBER: |