lua-users home
lua-l archive

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

Merick wrote:
> Alright, making some progress here. I've tested the patched dll that
> Shmuel sent me and I've been able to get FB to correctly read most of
> the data written with this, but I'm still having trouble with longints.
> Using this:
> a = struct.pack("l",-1)
> print(table.concat({string.byte(a,1,#a)}," "))
> the output I get is 255 255 255 255, is this the correct output for this?

Yep, it's an unsigned 32-bit int in 2s complement format.