From 85dcb411a8454de0bc1c2c60a24af1588e436c23 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 2 May 2002 14:12:27 -0300 Subject: all textual errors go through `luaL_verror' --- lmathlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lmathlib.c') diff --git a/lmathlib.c b/lmathlib.c index 77944ef8..7d91b083 100644 --- a/lmathlib.c +++ b/lmathlib.c @@ -1,5 +1,5 @@ /* -** $Id: lmathlib.c,v 1.42 2002/04/02 20:41:59 roberto Exp roberto $ +** $Id: lmathlib.c,v 1.43 2002/04/04 20:20:49 roberto Exp roberto $ ** Standard mathematical library ** See Copyright Notice in lua.h */ @@ -187,7 +187,7 @@ static int math_random (lua_State *L) { lua_pushnumber(L, (int)(r*(u-l+1))+l); /* integer between `l' and `u' */ break; } - default: lua_error(L, "wrong number of arguments"); + default: luaL_verror(L, "wrong number of arguments"); } return 1; } -- cgit v1.2.3-55-g6feb