Skip to content

Commit a34f313

Browse files
committed
Fix copy-and-paste mistake exposed by gcc warning.
1 parent bf2e5ee commit a34f313

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interfaces/ecpg/lib/data.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/data.c,v 1.22 2002/01/08 14:25:04 meskes Exp $ */
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/data.c,v 1.23 2002/01/08 23:34:47 tgl Exp $ */
22

33
#include "postgres_fe.h"
44

@@ -154,15 +154,15 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
154154
{
155155
case ECPGt_unsigned_short:
156156
/* ((unsigned short *) var)[act_tuple] = (unsigned short) ures;*/
157-
*((unsigned short *) (var + offset*act_tuple)) = (unsigned short) res;
157+
*((unsigned short *) (var + offset*act_tuple)) = (unsigned short) ures;
158158
break;
159159
case ECPGt_unsigned_int:
160160
/* ((unsigned int *) var)[act_tuple] = (unsigned int) ures;*/
161-
*((unsigned int *) (var + offset*act_tuple)) = (unsigned int) res;
161+
*((unsigned int *) (var + offset*act_tuple)) = (unsigned int) ures;
162162
break;
163163
case ECPGt_unsigned_long:
164164
/* ((unsigned long *) var)[act_tuple] = ures;*/
165-
*((unsigned long *) (var + offset*act_tuple)) = (unsigned long) res;
165+
*((unsigned long *) (var + offset*act_tuple)) = (unsigned long) ures;
166166
break;
167167
default:
168168
/* Cannot happen */

0 commit comments

Comments
 (0)