From 0969a971cd41921bd5ee72c1da880455bcca3bb4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 9 Mar 1998 18:49:52 -0300 Subject: better use of "ASSERT". --- lbuiltin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lbuiltin.c') diff --git a/lbuiltin.c b/lbuiltin.c index 683bbd9b..ed6e17b2 100644 --- a/lbuiltin.c +++ b/lbuiltin.c @@ -1,5 +1,5 @@ /* -** $Id: lbuiltin.c,v 1.25 1998/02/12 19:27:10 roberto Exp roberto $ +** $Id: lbuiltin.c,v 1.26 1998/03/06 16:54:42 roberto Exp roberto $ ** Built-in functions ** See Copyright Notice in lua.h */ @@ -160,8 +160,8 @@ static char *to_string (lua_Object obj) } case LUA_T_NIL: return "nil"; - default: - lua_error("internal error"); + default: + LUA_INTERNALERROR("invalid type"); return NULL; /* to avoid warnings */ } } -- cgit v1.2.3-55-g6feb