On Tue, Oct 30, 2007 at 07:31:58AM +0000, Jonathan Buzzard wrote:
> I guess the problem is in the libc qsort call, I pass in an array of
> timediff which is int's but tell qsort that it is of size long. Not a
> problem on an ia32 machine as the two are the same size. However if they
> are different it will cause a problem.
On amd64
#include <stdio.h>
int main() {
printf("int=%d long=%d\n",sizeof(int), sizeof(long));
return 0;
}
yields:
int=4 long=8
--
Paul Martin <[EMAIL PROTECTED]>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]