View Single Post
Old 01-27-2012, 03:24 PM   #282
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi Nick,

Bug was ...

Code:
dataout = dataout[:first_pdb_record+i*8]+\
                          struct.pack('>L',ofs)+struct.pack('L',it)+\
                          dataout[first_pdb_record+i*8+8:]
needs a '>L', not an plain 'L' to keep things properly big endian


Code:
dataout = dataout[:first_pdb_record+i*8]+\
                          struct.pack('>L',ofs)+struct.pack('>L',it)+\
                          dataout[first_pdb_record+i*8+8:]
once I made those changes then my earlier error message goes away.

Take care,

KevinH
KevinH is offline   Reply With Quote