mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Mixing long and int entries of a union only works on some architectures.
This commit is contained in:
@ -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"
|
#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 == ' ')
|
while (**pstr == ' ')
|
||||||
(*pstr)++;
|
(*pstr)++;
|
||||||
errno = 0;
|
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)
|
if (errno)
|
||||||
err = 1;
|
err = 1;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user