A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Lua5.3] Changed lua_tonumber to lua_tointeger where necessary
[simgrid.git]
/
src
/
bindings
/
lua
/
simgrid_lua.c
diff --git
a/src/bindings/lua/simgrid_lua.c
b/src/bindings/lua/simgrid_lua.c
index
97d9e96
..
587bca3
100644
(file)
--- a/
src/bindings/lua/simgrid_lua.c
+++ b/
src/bindings/lua/simgrid_lua.c
@@
-354,7
+354,7
@@
static int run_lua_code(int argc, char **argv)
/* retrieve result */
int res = 1;
if (lua_isnumber(L, -1)) {
- res = lua_to
numb
er(L, -1);
+ res = lua_to
integ
er(L, -1);
lua_pop(L, 1); /* pop returned value */
}