27.10.2012, 10:31
(
Последний раз редактировалось Babul; 27.10.2012 в 16:33.
)
hm.. what happens if you bitwise AND the result with all but the most significant bit? e.g.
...this eliminates the most significant bit (the 32'th is the sign of an integer), just erasing the minus?
i never had such issues with that function, so i cant replicate it
edit: oops, its not 0x8fffff, its indeed 0x7fffff - 0x7==0b0111 first bit set to 0
Код:
new Tick=GetTickCount()&0x8fffff;
i never had such issues with that function, so i cant replicate it
edit: oops, its not 0x8fffff, its indeed 0x7fffff - 0x7==0b0111 first bit set to 0