On Fri, Mar 27, 2009 at 9:03 AM, Andre Arpin <[email protected]> wrote:
> John Labenski <jlaben...@...> writes:
>
> the current version is codes as
> unsigned int mask = (int)wxlua_getnumbertype(L, 3);
> should be
> unsigned int mask = wxlua_getnumbertype(L, 3);
>
> the cast overrides the definition
Yep, I forgot to commit the proper changed files. I had a problem
where my CVS was out of sync with sourceforge's for some reason. Now
it should really be fixed.
unsigned int mask = (unsigned int)wxlua_getuintegertype(L, 3);
where "unsigned long wxlua_getuintegertype()" does this (pretty much at least)
double value = lua_tonumber(L, stack_idx);
unsigned long ulong_value = (unsigned long)value;
It's a multistep process to not let the compiler optimize away the
double->ulong->int conversion and have the same problem we started off
with.
Hope it works now,
John
------------------------------------------------------------------------------
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users