mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 02:41:21 +02:00
luainstance: fix overflow warning
This commit is contained in:
@@ -790,7 +790,7 @@ int CLuaInstance::strSub(lua_State *L)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
const char *s1;
|
const char *s1;
|
||||||
int pos=0, len=std::string::npos;
|
int pos = 0, len = (int)std::string::npos;
|
||||||
std::string ret="";
|
std::string ret="";
|
||||||
s1 = luaL_checkstring(L, 2);
|
s1 = luaL_checkstring(L, 2);
|
||||||
pos = luaL_checkint(L, 3);
|
pos = luaL_checkint(L, 3);
|
||||||
|
Reference in New Issue
Block a user