Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/lceasy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/lcmulti.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down