projects
/
monky
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95f6748
)
Specifically ask for an integer from Lua for percentage
author
Toni Spets
<toni.spets@iki.fi>
Sat, 16 May 2009 17:37:53 +0000
(20:37 +0300)
committer
Toni Spets
<toni.spets@iki.fi>
Sat, 16 May 2009 17:37:53 +0000
(20:37 +0300)
src/llua.c
patch
|
blob
|
history
diff --git
a/src/llua.c
b/src/llua.c
index
ee930fa
..
159105b
100644
(file)
--- a/
src/llua.c
+++ b/
src/llua.c
@@
-118,7
+118,7
@@
int llua_getpercent(const char *args, int *per)
if(!lua_isnumber(lua_L, -1)) {
ERR("llua_getpercent: function %s didn't return a number (percent), result discarded", func);
} else {
- *per = lua_tonumber(lua_L, -1);
+ *per = lua_tointeger(lua_L, -1);
lua_pop(lua_L, 1);
return 1;
}