GetTickCount() gives negative integer
#5

hm.. what happens if you bitwise AND the result with all but the most significant bit? e.g.
Код:
new Tick=GetTickCount()&0x8fffff;
...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
Reply


Messages In This Thread
GetTickCount() gives negative integer - by Sinner - 27.10.2012, 08:57
Re: GetTickCount() gives negative integer - by park4bmx - 27.10.2012, 09:57
Re: GetTickCount() gives negative integer - by EV007 - 27.10.2012, 09:59
Re: GetTickCount() gives negative integer - by iPLEOMAX - 27.10.2012, 10:04
Re: GetTickCount() gives negative integer - by Babul - 27.10.2012, 10:31
Re: GetTickCount() gives negative integer - by Mauzen - 27.10.2012, 10:47
Re: GetTickCount() gives negative integer - by Sinner - 27.10.2012, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)