Skip to content

Commit 78cbd49

Browse files
author
Michael Meskes
committed
Mixing long and int entries of a union only works on some architectures.
1 parent 244f649 commit 78cbd49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/ecpg/pgtypeslib/dt_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/dt_common.c,v 1.46 2009/02/04 08:51:09 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/dt_common.c,v 1.47 2009/02/05 08:28:47 meskes Exp $ */
22

33
#include "postgres_fe.h"
44

@@ -2550,7 +2550,7 @@ pgtypes_defmt_scan(union un_fmt_comb * scan_val, int scan_type, char **pstr, cha
25502550
while (**pstr == ' ')
25512551
(*pstr)++;
25522552
errno = 0;
2553-
scan_val->uint_val = (unsigned long int) strtol(*pstr, &strtol_end, 10);
2553+
scan_val->luint_val = (unsigned long int) strtol(*pstr, &strtol_end, 10);
25542554
if (errno)
25552555
err = 1;
25562556
break;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy