projects
/
users
/
simon
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
| inline |
side by side
(parent:
fc058be
)
Mixing long and int entries of a union only works on some architectures.
author
Michael Meskes
<
[email protected]
>
Thu, 5 Feb 2009 08:28:47 +0000
(08:28 +0000)
committer
Michael Meskes
<
[email protected]
>
Thu, 5 Feb 2009 08:28:47 +0000
(08:28 +0000)
src/interfaces/ecpg/pgtypeslib/dt_common.c
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/pgtypeslib/dt_common.c
b/src/interfaces/ecpg/pgtypeslib/dt_common.c
index 349aa7982edf81f31beb779a5929d8e3eba70048..0d35735dd27e795c5494424b5134ed6e9a0c6233 100644
(file)
--- a/
src/interfaces/ecpg/pgtypeslib/dt_common.c
+++ b/
src/interfaces/ecpg/pgtypeslib/dt_common.c
@@
-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->
l
uint_val = (unsigned long int) strtol(*pstr, &strtol_end, 10);
if (errno)
err = 1;
break;