According to Gavin Romig-Koch: > ! #define __LONG_MAX__ (((unsigned long)-1)/2) You forgot the (long) cast -- __LONG_MAX__ must be of type "long". -- Chip Salzenberg - a.k.a. - <chip@perlsupport.com> "... under cover of afternoon in the biggest car in the county?!" //MST3K