Comment 2 for bug 508739

Revision history for this message
mathrawka (jon-licq) wrote :

The problem is that it poker-eval uses sizeof(int) for an int pointer, which is 4 bytes on 64-bit CPU but it should be 8 bytes.

Here is a simple patch to enumerate.h that will make fix poker-eval, and cause pypoker-eval to not crash.

Can you please use this to make a new package?

624c623
< _curElem = (int **) malloc(num_sets * sizeof(int)); \
---
> _curElem = (int **) malloc(num_sets * sizeof(intptr_t)); \