Thursday, August 23, 2007

porting from 32bit to 64bit architectures

Besides making sure you are using the right interger size when using interoperable files, this week we 'rediscovered' the dangers of the NULL pointer in x84_64.

When using a c function with ellipses, the compiler does not 'know' the size of the null pointer and convers the appareance on 'NULL' into a 0(zero). Thus, making some functions not work correctly unless the NULL pointer is casted to an 'appropiate pointer'. (Why this? this is already a pointer..)

No comments: