Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-04-2005, 07:55 AM
barycentric barycentric is offline
Member
 
Join Date: Apr 2005
Posts: 97
Default PokerTracker uses signed 32-bit integers, OVERFLOW!!!!

PartyPoker and its skins passed the 2^31 = 2147483648 hands in the last 6 hours. As a result, all the hands that are imported into PokerTracker have overflow problem as their hand # show up as negative. In signed 32-bit integers, integers between 2147483648 and 4294967295 are negative. This doesn't affect PT's functionality, but I just thought it was hilarious.
Reply With Quote
  #2  
Old 06-04-2005, 09:31 AM
Dazarath Dazarath is offline
Senior Member
 
Join Date: Nov 2004
Posts: 185
Default Re: PokerTracker uses signed 32-bit integers, OVERFLOW!!!!

Haha, I just took a look. Pat said he's going to look into fixing it later today (I think) with a patch.
Reply With Quote
  #3  
Old 06-04-2005, 10:33 AM
ptrack mike ptrack mike is offline
Junior Member
 
Join Date: Feb 2005
Posts: 21
Default Re: PokerTracker uses signed 32-bit integers, OVERFLOW!!!!

I can confirm that Pat and I are working on PTH and PTO patches right now.
Reply With Quote
  #4  
Old 06-04-2005, 10:41 AM
Stormwolf Stormwolf is offline
Member
 
Join Date: Oct 2004
Posts: 48
Default Re: PokerTracker uses signed 32-bit integers, OVERFLOW!!!!

Is something on PT malfuntioning currently?
Reply With Quote
  #5  
Old 06-04-2005, 11:25 AM
Dazarath Dazarath is offline
Senior Member
 
Join Date: Nov 2004
Posts: 185
Default Re: PokerTracker uses signed 32-bit integers, OVERFLOW!!!!

It's not a malfunction (well, not a major one at least); it's an overflow issue like barycentric said. PT uses 32-bit signed integers to store the hand history numbers. That means the range of values it can store are between +2^31-1 and -2^31, inclusive. So when the hand history number exceeds 2^31-1, the value actually represents a negative value.

Here's a simpler example with 3-bit integers: (Someone may want to check my math, as it's late and I haven't really slept yet.)
Binary -- Unsigned -- Signed
000 -- 0 -- 0
001 -- 1 -- 1
010 -- 2 -- 2
011 -- 3 -- 3
100 -- 4 -- -4
101 -- 5 -- -3
110 -- 6 -- -2
111 -- 7 -- -1

The left column is the bit representation in binary. The middle column is the value if it's an unsigned integer (ie. no negatives). The right column is the value if it's a signed integer (negatives allowed). As you can see, when the value exceeds 011 (3), then the values represented become negative. This is what's happening in PT. I've been using PT this morning and it seems to be working fine for the most part. I can import hand histories and everything. After the patch though, for all I know, we may have to export/reimport the hands, but that's not a big deal.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:12 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.