From 559149824b248f4b9b82bda3d32ac7241d71642a Mon Sep 17 00:00:00 2001 From: Federico Di Gregorio Date: Thu, 2 Mar 2006 13:47:30 +0000 Subject: [PATCH] Small 64 bit fix. --- ChangeLog | 5 +++++ psycopg/typecast_array.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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];