X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/77163c152598f613abd0a938a967fcbd7a95fc8b..a92d7b716f51a53dea7f59db8524d4add713b910:/src/bindings/lua/lua_host.cpp diff --git a/src/bindings/lua/lua_host.cpp b/src/bindings/lua/lua_host.cpp index 71484a4251..4d4eac910a 100644 --- a/src/bindings/lua/lua_host.cpp +++ b/src/bindings/lua/lua_host.cpp @@ -34,7 +34,7 @@ sg_host_t sglua_check_host(lua_State * L, int index) if (pi == nullptr) XBT_ERROR("luaL_checkudata() returned nullptr"); sg_host_t ht = *pi; - if (!ht) + if (not ht) luaL_error(L, "null Host"); return ht; }