From 9ac4028aa447ffa4ba5723abd49b4d397d0b8ec5 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Fri, 4 May 2012 12:11:17 +0000 Subject: [PATCH] Use int instead of size_t when condition >=0 is used. --- convert.c | 3 ++- misc.c | 2 +- version.h | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/convert.c b/convert.c index fb66426..9af66d8 100644 --- a/convert.c +++ b/convert.c @@ -3937,7 +3937,8 @@ ResolveOneParam(QueryBuild *qb, QueryParse *qp) OID lobj_oid; int lobj_fd; SQLULEN offset = apdopts->param_offset_ptr ? *apdopts->param_offset_ptr : 0; - size_t current_row = qb->current_row, npos = 0; + size_t current_row = qb->current_row; + int npos = 0; BOOL handling_large_object = FALSE, req_bind, add_quote = FALSE; ParameterInfoClass *apara; ParameterImplClass *ipara; diff --git a/misc.c b/misc.c index 48fb4d6..1d3d73f 100644 --- a/misc.c +++ b/misc.c @@ -249,7 +249,7 @@ remove_newlines(char *string) char * my_trim(char *s) { - size_t i; + int i; for (i = strlen(s) - 1; i >= 0; i--) { diff --git a/version.h b/version.h index 2e95a46..10007c4 100644 --- a/version.h +++ b/version.h @@ -9,9 +9,9 @@ #ifndef __VERSION_H__ #define __VERSION_H__ -#define POSTGRESDRIVERVERSION "09.01.0100" -#define POSTGRES_RESOURCE_VERSION "09.01.0100\0" -#define PG_DRVFILE_VERSION 9,1,01,00 -#define PG_BUILD_VERSION "201112290002" +#define POSTGRESDRIVERVERSION "09.01.0101" +#define POSTGRES_RESOURCE_VERSION "09.01.0101\0" +#define PG_DRVFILE_VERSION 9,1,01,01 +#define PG_BUILD_VERSION "201205040001" #endif -- 2.39.5