summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordeva <deva>2011-06-28 06:29:51 +0000
committerdeva <deva>2011-06-28 06:29:51 +0000
commit540221455626e4d48fee76d8c6cb86e5d2607f4e (patch)
treecb8a0ee0d99c1107fa5e8c68df31d1940638334a
parent083800caa84620d3c31d47327e7d575a1d7fb0aa (diff)
Fixed compile warning.
-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));