summaryrefslogtreecommitdiff
path: root/client/luadb.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/luadb.cc')
-rw-r--r--client/luadb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/luadb.cc b/client/luadb.cc
index a9e77e6..317831f 100644
--- a/client/luadb.cc
+++ b/client/luadb.cc
@@ -126,7 +126,7 @@ static int db_new(lua_State *L)
const char *database = luaL_checkstring(L, 3);
const char *user = luaL_checkstring(L, 4);
const char *password = luaL_checkstring(L, 5);
- int port = luaL_checknumber(L, 6);
+ int port = (int)luaL_checknumber(L, 6);
db_userdata *dbu;
dbu = (db_userdata *)lua_newuserdata(L, sizeof(db_userdata));