fix warning on msvc
This commit is contained in:
parent
e5055b5d19
commit
59dce2624f
@ -560,10 +560,10 @@ static int lcurl_xferinfo_callback(void *arg, curl_off_t dltotal, curl_off_t dln
|
|||||||
int top = lua_gettop(L);
|
int top = lua_gettop(L);
|
||||||
int n = lcurl_util_push_cb(L, &p->pr);
|
int n = lcurl_util_push_cb(L, &p->pr);
|
||||||
|
|
||||||
lua_pushnumber( L, dltotal );
|
lua_pushnumber( L, (lua_Number)dltotal );
|
||||||
lua_pushnumber( L, dlnow );
|
lua_pushnumber( L, (lua_Number)dlnow );
|
||||||
lua_pushnumber( L, ultotal );
|
lua_pushnumber( L, (lua_Number)ultotal );
|
||||||
lua_pushnumber( L, ulnow );
|
lua_pushnumber( L, (lua_Number)ulnow );
|
||||||
|
|
||||||
if(lua_pcall(L, n+3, LUA_MULTRET, 0)){
|
if(lua_pcall(L, n+3, LUA_MULTRET, 0)){
|
||||||
assert(lua_gettop(L) >= top);
|
assert(lua_gettop(L) >= top);
|
||||||
|
@ -358,7 +358,7 @@ int lcurl_multi_timer_callback(CURLM *multi, long ms, void *arg){
|
|||||||
|
|
||||||
if(lua_isboolean(L, top + 1))
|
if(lua_isboolean(L, top + 1))
|
||||||
ret = lua_toboolean(L, top + 1)?0:-1;
|
ret = lua_toboolean(L, top + 1)?0:-1;
|
||||||
else ret = lua_tonumber(L, top + 1);
|
else ret = lua_tointeger(L, top + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
lua_settop(L, top);
|
lua_settop(L, top);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user