]> granicus.if.org Git - postgresql/commitdiff
Applied Magnus Hagander's patch to take away some compiler warnings.
authorMichael Meskes <meskes@postgresql.org>
Fri, 2 Feb 2007 09:31:10 +0000 (09:31 +0000)
committerMichael Meskes <meskes@postgresql.org>
Fri, 2 Feb 2007 09:31:10 +0000 (09:31 +0000)
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ecpglib/typename.c

index 5bb0fafeac713f3522f7cfada4a460bfc52d1b1a..36c670d45f6b0219f89251862b4ff5e65f1eff20 100644 (file)
@@ -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.
index d83356e39df25a3102ebb8026c6c659817bed4d0..ad4ef6c4f2e0d85e9904af8d5239f6b22d5cfce9 100644 (file)
@@ -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;
        }
 }