igormarfin / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

unpack_int() may only return unsigned integers for short and long #181

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. try to struct.unpack() a negative short

What is the expected output? What do you see instead?
short is unsigned rather than negative

What version of the product are you using? On what operating system?
git mainline

Please provide any additional information below.

unpacking should respect real data size and signed/unsigned, also it would be 
nice to use platform-independent integer size names

Original issue reported on code.google.com by RealGran...@gmail.com on 24 Feb 2013 at 1:11

GoogleCodeExporter commented 8 years ago
thanks for reporting! I can reproduce the problem here, and will try to fix it 
soon.

Original comment by mark.duf...@gmail.com on 28 Feb 2013 at 8:52

GoogleCodeExporter commented 8 years ago
alright, fixed in git main.. btw, what do you mean by 'integer size names'?

thanks again for reporting!

Original comment by mark.duf...@gmail.com on 28 Feb 2013 at 9:06