Skip to content

Commit 4939181

Browse files
authored
Merge pull request #163 from moteus/libcurl_7_74_0
Add. Support libcurl 7.74.0
2 parents cb7a59c + d5240a2 commit 4939181

File tree

13 files changed

+610
-11
lines changed

13 files changed

+610
-11
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ shallow_clone: true
77

88
environment:
99
LR_EXTERNAL: c:\external
10-
CURL_VER: 7.65.1
10+
CURL_VER: 7.74.0
1111

1212
matrix:
1313
- LUA: "lua 5.1"

src/l52util.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,14 @@ void lutil_pushint64(lua_State *L, int64_t v){
141141
lua_pushnumber(L, (lua_Number)v);
142142
}
143143

144+
void lutil_pushuint(lua_State *L, unsigned int v){
145+
#if LUA_VERSION_NUM >= 503
146+
lua_pushinteger(L, (lua_Integer)v);
147+
#else
148+
lua_pushnumber(L, (lua_Number)v);
149+
#endif
150+
}
151+
144152
int64_t lutil_checkint64(lua_State *L, int idx){
145153
if(sizeof(lua_Integer) >= sizeof(int64_t))
146154
return luaL_checkinteger(L, idx);

src/l52util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ int lutil_createmetap (lua_State *L, const void *p, const luaL_Reg *methods,
8080

8181
void *lutil_newudatap_impl (lua_State *L, size_t size, const void *p);
8282

83+
void lutil_pushuint(lua_State *L, unsigned int v);
84+
8385
void lutil_pushint64(lua_State *L, int64_t v);
8486

8587
int64_t lutil_checkint64(lua_State *L, int idx);

0 commit comments

Comments
 (0)