summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-11-08 15:06:03 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2011-11-08 15:06:03 +0100
commita47a8ec567872c2b96eb35efb60273060e32df4d (patch)
treeda8ffbf38b0f8a8d9a9acde2ab6aa191a7135e92 /server
parentc23a5647d61bf0653f5bec11adb23d7e4018fe3e (diff)
Missing typecast.
Diffstat (limited to 'server')
-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));