mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-13 17:00:19 +00:00
Added cast for c++ friendliness
This commit is contained in:
1 parent
653fab6b41
commit
4d7ea04dd8
1 file changed
+2
-1
+2
-1
@@ -2627,7 +2627,8 @@ static int lua_write(lua_State *L) {
|
|||||||
int i, num_args;
|
int i, num_args;
|
||||||
const char *str;
|
const char *str;
|
||||||
size_t size;
|
size_t size;
|
||||||
struct mg_connection *conn = lua_touserdata(L, lua_upvalueindex(1));
|
struct mg_connection *conn = (struct mg_connection *)
|
||||||
|
lua_touserdata(L, lua_upvalueindex(1));
|
||||||
|
|
||||||
num_args = lua_gettop(L);
|
num_args = lua_gettop(L);
|
||||||
for (i = 1; i <= num_args; i++) {
|
for (i = 1; i <= num_args; i++) {
|
||||||
|
|||||||
Reference in new issue
Block a user