Fix. Use long to save curl constants.

This commit is contained in:
Alexey Melnichuk 2014-09-05 15:20:43 +05:00
parent 7a1c663582
commit bd2cbd6010
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ void lcurl_storage_get_i(lua_State *L, int storage, int i){
}
struct curl_slist* lcurl_storage_remove_slist(lua_State *L, int storage, int idx){
struct curl_slist* list;
struct curl_slist* list = NULL;
assert(idx != LUA_NOREF);
lua_rawgeti(L, LCURL_LUA_REGISTRY, storage);
lua_rawgeti(L, -1, LCURL_STORAGE_SLIST); // list storage

View File

@ -10,7 +10,7 @@
typedef struct lcurl_const_tag{
const char *name;
int value;
long value;
}lcurl_const_t;
typedef struct lcurl_callback_tag{