From 71055664331c4aed87359b50fffddf06844d0beb Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Sat, 31 Oct 2009 13:50:55 +0000 Subject: [PATCH] Compilation fixes: A typo, and a cast double->int git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1119 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- factory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/factory.c b/factory.c index 616d942b..e781fce7 100644 --- a/factory.c +++ b/factory.c @@ -102,10 +102,10 @@ int L_SetColor(lua_State* L) return 0; } -int L_GetColor(lua_state* L) +int L_GetColor(lua_State* L) { T_Components couleur; - couleur = Main_palette[lua_tonumber(L,1)]; + couleur = Main_palette[(int)(lua_tonumber(L,1))]; lua_pushinteger(L, couleur.R); lua_pushinteger(L, couleur.G);