--- factor.c.orig Tue Oct 23 10:14:12 2012 +++ factor.c Sun Oct 28 15:03:04 2012 @@ -124,7 +124,7 @@ #if USE_LONGLONG_H /* Make definitions for longlong.h to make it do what it can do for us */ -# define W_TYPE_SIZE 64 /* bitcount for uintmax_t */ +# define W_TYPE_SIZE (INT64_MAX_EQ_LONG_MAX ? 64 : 32) # define UWtype uintmax_t # define UHWtype unsigned long int # undef UDWtype