mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
luainstance: work around a signed/unsigned problem on ppc
Origin commit data
------------------
Commit: 8af79e1152
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-04-06 (Sat, 06 Apr 2013)
This commit is contained in:
committed by
Michael Liebmann
parent
9b41d86736
commit
c69842f9d8
@@ -374,7 +374,8 @@ int CLuaInstance::PaintBox(lua_State *L)
|
||||
y = luaL_checkint(L, 3);
|
||||
w = luaL_checkint(L, 4);
|
||||
h = luaL_checkint(L, 5);
|
||||
c = luaL_checkint(L, 6);
|
||||
/* luaL_checkint does not like e.g. 0xffcc0000 on powerpc (returns INT_MAX) instead */
|
||||
c = (unsigned int)luaL_checknumber(L, 6);
|
||||
if (count > 6)
|
||||
radius = luaL_checkint(L, 7);
|
||||
if (count > 7)
|
||||
|
Reference in New Issue
Block a user