From a47a8ec567872c2b96eb35efb60273060e32df4d Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 8 Nov 2011 15:06:03 +0100 Subject: Missing typecast. --- server/src/luapraxisd.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/luapraxisd.cc') 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)); -- cgit v1.2.3