git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 244f649)
Mixing long and int entries of a union only works on some architectures.
Thu, 5 Feb 2009 08:28:47 +0000 (08:28 +0000)
Thu, 5 Feb 2009 08:28:47 +0000 (08:28 +0000)

diff --git a/src/interfaces/ecpg/pgtypeslib/dt_common.c b/src/interfaces/ecpg/pgtypeslib/dt_common.c
index dc3ef05826f22541588e09f68c73e530953ef655..6850c22a20bafd28ffa585e51479d306e3d38f9c 100644 (file)
--- a/src/interfaces/ecpg/pgtypeslib/dt_common.c
+++ b/src/interfaces/ecpg/pgtypeslib/dt_common.c
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/dt_common.c,v 1.46 2009年02月04日 08:51:09 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/dt_common.c,v 1.47 2009年02月05日 08:28:47 meskes Exp $ */
#include "postgres_fe.h"
@@ -2550,7 +2550,7 @@ pgtypes_defmt_scan(union un_fmt_comb * scan_val, int scan_type, char **pstr, cha
while (**pstr == ' ')
(*pstr)++;
errno = 0;
- scan_val->uint_val = (unsigned long int) strtol(*pstr, &strtol_end, 10);
+ scan_val->luint_val = (unsigned long int) strtol(*pstr, &strtol_end, 10);
if (errno)
err = 1;
break;
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /