
-----------------------------------
Zeroth
Fri May 01, 2009 7:54 pm

32bit to 64bit c code errors
-----------------------------------
Okay, so I'm trying to fix a bug in pygame, and I've experienced an interesting issue. The bug only occurs on 64 bit platforms, because of the extended size of the int/long. 

//test_color.c

#include 
#include 
#include 
typedef uint8_t Uint8;
main()
{
    Uint8 r=204;
    Uint8 g=0;
    Uint8 b=204;
    Uint8 a=0;
    unsigned long tmp = (r 