diff --git a/ChangeLog b/ChangeLog index ade80ada..866ca3ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-02 Federico Di Gregorio + + * psycopg/typecast_array.c (typecast_array_tokenize): removed cast + to build without warnings on 64 bit arches. + 2006-02-11 Federico Di Gregorio * Release 2.0 beta 8. diff --git a/psycopg/typecast_array.c b/psycopg/typecast_array.c index 8fe74378..65055334 100644 --- a/psycopg/typecast_array.c +++ b/psycopg/typecast_array.c @@ -136,7 +136,7 @@ typecast_array_tokenize(char *str, int strlength, } *buffer = '\0'; - *length = (int)buffer - (int)*token; + *length = buffer - *token; } else { *token = &str[*pos];