lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2008/4/16, Merick <Merick_TeVaran@comcast.net>:
> Jerome Vuarand wrote:
> > Without a dump of the actual data, the problem can come from either
> > struct of FB. Try:
> >
> > a = struct.pack("BHIL",1,2,3,4)
> > print(table.concat({string.byte(a,1,#a)}," "))
> >
> > On my 32bits WinXP it gives:
> >
> > 1 2 0 3 0 0 0 4 0 0 0
> >
> > which is the expected result.
>
>  I'm also on 32bit WinXP, when I try that it skips the zeros after the 3:
>  1 2 0 3 4 0 0 0

There is something wrong here. Did you patch your version of struct ?
How did you compile it ?