summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/src/luapraxisd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/luapraxisd.cc b/server/src/luapraxisd.cc
index 6025aa5..04a83db 100644
--- a/server/src/luapraxisd.cc
+++ b/server/src/luapraxisd.cc
@@ -130,7 +130,7 @@ static int px_cavelist(lua_State *L)
static int px_new(lua_State *L)
{
const char *host = luaL_checkstring(L, 1);
- int port = luaL_checknumber(L, 2);
+ int port = (int)luaL_checknumber(L, 2);
px_userdata *pxu;
pxu = (px_userdata *)lua_newuserdata(L, sizeof(px_userdata));