From 685523c42070effa542bb22d391f2bf933a243c9 Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Fri, 2 Feb 2007 09:31:10 +0000 Subject: [PATCH] Applied Magnus Hagander's patch to take away some compiler warnings. --- src/interfaces/ecpg/ChangeLog | 1 + src/interfaces/ecpg/ecpglib/typename.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog index 5bb0fafeac..36c670d45f 100644 --- a/src/interfaces/ecpg/ChangeLog +++ b/src/interfaces/ecpg/ChangeLog @@ -2164,5 +2164,6 @@ Th 25. Jan 17:17:01 CET 2007 Fr 2. Feb 09:53:48 CET 2007 - Cleaned up va_list handling. Hopefully this now works on all archs. + - Applied Magnus Hagander's patch to take away some compiler warnings. - Set ecpg library version to 5.3. - Set ecpg version to 4.3.1. diff --git a/src/interfaces/ecpg/ecpglib/typename.c b/src/interfaces/ecpg/ecpglib/typename.c index d83356e39d..ad4ef6c4f2 100644 --- a/src/interfaces/ecpg/ecpglib/typename.c +++ b/src/interfaces/ecpg/ecpglib/typename.c @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/typename.c,v 1.11 2007/01/25 16:45:25 meskes Exp $ */ +/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/typename.c,v 1.12 2007/02/02 09:31:10 meskes Exp $ */ #define POSTGRES_ECPG_INTERNAL #include "postgres_fe.h" @@ -96,6 +96,6 @@ ECPGDynamicType(Oid type) case NUMERICOID: return SQL3_NUMERIC; /* numeric */ default: - return -type; + return -(int)type; } } -- 2.40.0