summaryrefslogtreecommitdiff
path: root/lib/LuaHttp.cc
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-09-26 14:52:14 -0700
committerPixel <pixel@nobis-crew.org>2008-09-26 14:52:14 -0700
commit4a84d6f13637f5867ecfaea29446a69278e9afcf (patch)
tree1a043299506d4e314b0fe665a20a833e65d1c994 /lib/LuaHttp.cc
parent0407ac7fb3103b7c162575d204c1147ab0ffac10 (diff)
Fixing MSVC whinnings.
Diffstat (limited to 'lib/LuaHttp.cc')
-rw-r--r--lib/LuaHttp.cc2
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") {