summaryrefslogtreecommitdiff
path: root/lmathlib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-02 14:12:27 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-05-02 14:12:27 -0300
commit85dcb411a8454de0bc1c2c60a24af1588e436c23 (patch)
tree169fc4cefe7ba02a46944a172660aff208b3e42e /lmathlib.c
parent3c6a383d6239629fd8858e0d59bcdab25138bcc1 (diff)
downloadlua-85dcb411a8454de0bc1c2c60a24af1588e436c23.tar.gz
lua-85dcb411a8454de0bc1c2c60a24af1588e436c23.tar.bz2
lua-85dcb411a8454de0bc1c2c60a24af1588e436c23.zip
all textual errors go through `luaL_verror'
Diffstat (limited to 'lmathlib.c')
-rw-r--r--lmathlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lmathlib.c b/lmathlib.c
index 77944ef8..7d91b083 100644
--- a/lmathlib.c
+++ b/lmathlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lmathlib.c,v 1.42 2002/04/02 20:41:59 roberto Exp roberto $ 2** $Id: lmathlib.c,v 1.43 2002/04/04 20:20:49 roberto Exp roberto $
3** Standard mathematical library 3** Standard mathematical library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -187,7 +187,7 @@ static int math_random (lua_State *L) {
187 lua_pushnumber(L, (int)(r*(u-l+1))+l); /* integer between `l' and `u' */ 187 lua_pushnumber(L, (int)(r*(u-l+1))+l); /* integer between `l' and `u' */
188 break; 188 break;
189 } 189 }
190 default: lua_error(L, "wrong number of arguments"); 190 default: luaL_verror(L, "wrong number of arguments");
191 } 191 }
192 return 1; 192 return 1;
193} 193}