diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-18 12:16:18 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-18 12:16:18 -0300 |
commit | d8678edddc98beab8eb78e63e698191a9ffd39b8 (patch) | |
tree | fa8b5e3595f0caa11fb8ee5bfc3412e76dbef230 /lmathlib.c | |
parent | e812aa200234629d89351b6653d6ae737478ccd8 (diff) | |
download | lua-d8678edddc98beab8eb78e63e698191a9ffd39b8.tar.gz lua-d8678edddc98beab8eb78e63e698191a9ffd39b8.tar.bz2 lua-d8678edddc98beab8eb78e63e698191a9ffd39b8.zip |
luaL_verror -> luaL_error
Diffstat (limited to 'lmathlib.c')
-rw-r--r-- | lmathlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmathlib.c,v 1.45 2002/05/06 19:05:10 roberto Exp roberto $ | 2 | ** $Id: lmathlib.c,v 1.46 2002/06/05 17:24:04 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: return luaL_verror(L, "wrong number of arguments"); | 190 | default: return luaL_error(L, "wrong number of arguments"); |
191 | } | 191 | } |
192 | return 1; | 192 | return 1; |
193 | } | 193 | } |