diff options
author | deva <deva> | 2011-06-28 06:29:51 +0000 |
---|---|---|
committer | deva <deva> | 2011-06-28 06:29:51 +0000 |
commit | 540221455626e4d48fee76d8c6cb86e5d2607f4e (patch) | |
tree | cb8a0ee0d99c1107fa5e8c68df31d1940638334a /client/luadb.cc | |
parent | 083800caa84620d3c31d47327e7d575a1d7fb0aa (diff) |
Fixed compile warning.
Diffstat (limited to 'client/luadb.cc')
-rw-r--r-- | client/luadb.cc | 2 |
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)); |