John Labenski <jlaben...@...> writes:
>
> This is very strange to me. Lets try to figure this out.
>
> What processor?
Intel Q6600
> What OS?
XP
> What compiler are you using?
visual studio 2008
>
> stick these lines into wxLua_wxStyledTextCtrl_SetMarginMask(). It
> might just be that your sizeof(double) is not 8 bytes? My sizes in
> VC6, Intel core 2 duo, Win XP, are the comments to the right.
>
> int int_size = sizeof(int); // 4
> int long_size = sizeof(long); // 4
> int float_size = sizeof(float); // 4
> int double_size = sizeof(double); // 8
This is right
all of the following works
unsigned int mask = wxlua_getnumbertype(L, 3);
int mask = (unsigned long)wxlua_getnumbertype(L, 3);
int mask = (unsigned int)wxlua_getnumbertype(L, 3);
works
I think the last one is preferable.
This is strange I though that I tried some of these before resorting to bit
manipulation.
I wonder why this very small change in casting.
Andre
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users