From 4d7ea04dd8a59778d3b0f36ef694049d9d7144e9 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Tue, 10 Dec 2013 00:19:33 +0000 Subject: [PATCH] Added cast for c++ friendliness --- mongoose.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index 8b14ca655..20ffb1091 100644 --- a/mongoose.c +++ b/mongoose.c @@ -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++) { -- GitLab