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
/
lua_host.c
diff --git
a/src/bindings/lua/lua_host.c
b/src/bindings/lua/lua_host.c
index
b9d01a9
..
cef6cf8
100644
(file)
--- a/
src/bindings/lua/lua_host.c
+++ b/
src/bindings/lua/lua_host.c
@@
-90,7
+90,7
@@
static int l_host_get_name(lua_State * L)
static int l_host_number(lua_State * L)
{
xbt_dynar_t hosts = MSG_hosts_as_dynar();
static int l_host_number(lua_State * L)
{
xbt_dynar_t hosts = MSG_hosts_as_dynar();
- lua_push
numb
er(L, xbt_dynar_length(hosts));
+ lua_push
integ
er(L, xbt_dynar_length(hosts));
xbt_dynar_free(&hosts);
return 1;
}
xbt_dynar_free(&hosts);
return 1;
}
@@
-169,7
+169,7
@@
static int l_host_get_property_value(lua_State * L)
*/
static int l_host_sleep(lua_State *L)
{
*/
static int l_host_sleep(lua_State *L)
{
- int time = luaL_check
numb
er(L, 1);
+ int time = luaL_check
integ
er(L, 1);
MSG_process_sleep(time);
return 0;
}
MSG_process_sleep(time);
return 0;
}