Merge pull request #4 from zhaozg/master

fix warning on msvc
This commit is contained in:
Alexey Melnichuk 2014-08-29 13:20:15 +00:00
commit ce7b3aab6b
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 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);

View File

@ -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);