fix warning on msvc

This commit is contained in:
zhaozg 2014-08-29 20:25:59 +08:00
parent e5055b5d19
commit 59dce2624f
2 changed files with 5 additions and 5 deletions

View File

@ -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 n = lcurl_util_push_cb(L, &p->pr);
lua_pushnumber( L, dltotal );
lua_pushnumber( L, dlnow );
lua_pushnumber( L, ultotal );
lua_pushnumber( L, ulnow );
lua_pushnumber( L, (lua_Number)dltotal );
lua_pushnumber( L, (lua_Number)dlnow );
lua_pushnumber( L, (lua_Number)ultotal );
lua_pushnumber( L, (lua_Number)ulnow );
if(lua_pcall(L, n+3, LUA_MULTRET, 0)){
assert(lua_gettop(L) >= top);

View File

@ -358,7 +358,7 @@ int lcurl_multi_timer_callback(CURLM *multi, long ms, void *arg){
if(lua_isboolean(L, top + 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);