From 540221455626e4d48fee76d8c6cb86e5d2607f4e Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 28 Jun 2011 06:29:51 +0000 Subject: Fixed compile warning. --- client/luadb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3