diff options
Diffstat (limited to 'lib/LuaHttp.cc')
-rw-r--r-- | lib/LuaHttp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc index be4f143..89e55e7 100644 --- a/lib/LuaHttp.cc +++ b/lib/LuaHttp.cc @@ -247,7 +247,7 @@ int sLua_HttpResponse::HttpResponse_proceed(Lua * L, int n, HttpResponse * res, } else if (i == "server_name") { res->server_name = L->tostring(3); } else if (i == "return_code") { - res->return_code = HttpResponse::return_code_t(L->tonumber(3)); + res->return_code = (HttpResponse::return_code_t)(int)L->tonumber(3); } else if (i == "last_modified") { res->last_modified = L->tonumber(3); } else if (i == "contents") { |