Small 64 bit fix.

This commit is contained in:
Federico Di Gregorio 2006-03-02 13:47:30 +00:00
parent bf52a9ac21
commit 559149824b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-03-02 Federico Di Gregorio <fog@initd.org>
* psycopg/typecast_array.c (typecast_array_tokenize): removed cast
to build without warnings on 64 bit arches.
2006-02-11 Federico Di Gregorio <fog@initd.org>
* Release 2.0 beta 8.

View File

@ -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];