mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-06 13:37:34 +08:00
Added cast for c++ friendliness
This commit is contained in:
parent
653fab6b41
commit
4d7ea04dd8
@ -2627,7 +2627,8 @@ static int lua_write(lua_State *L) {
|
||||
int i, num_args;
|
||||
const char *str;
|
||||
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);
|
||||
for (i = 1; i <= num_args; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user