Fix copy-and-paste mistake exposed by gcc warning.

This commit is contained in:
Tom Lane 2002-01-08 23:34:47 +00:00
parent bf2e5eedf0
commit a34f313223

View File

@ -1,4 +1,4 @@
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/data.c,v 1.22 2002/01/08 14:25:04 meskes Exp $ */ /* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/data.c,v 1.23 2002/01/08 23:34:47 tgl Exp $ */
#include "postgres_fe.h" #include "postgres_fe.h"
@ -154,15 +154,15 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
{ {
case ECPGt_unsigned_short: case ECPGt_unsigned_short:
/* ((unsigned short *) var)[act_tuple] = (unsigned short) ures;*/ /* ((unsigned short *) var)[act_tuple] = (unsigned short) ures;*/
*((unsigned short *) (var + offset*act_tuple)) = (unsigned short) res; *((unsigned short *) (var + offset*act_tuple)) = (unsigned short) ures;
break; break;
case ECPGt_unsigned_int: case ECPGt_unsigned_int:
/* ((unsigned int *) var)[act_tuple] = (unsigned int) ures;*/ /* ((unsigned int *) var)[act_tuple] = (unsigned int) ures;*/
*((unsigned int *) (var + offset*act_tuple)) = (unsigned int) res; *((unsigned int *) (var + offset*act_tuple)) = (unsigned int) ures;
break; break;
case ECPGt_unsigned_long: case ECPGt_unsigned_long:
/* ((unsigned long *) var)[act_tuple] = ures;*/ /* ((unsigned long *) var)[act_tuple] = ures;*/
*((unsigned long *) (var + offset*act_tuple)) = (unsigned long) res; *((unsigned long *) (var + offset*act_tuple)) = (unsigned long) ures;
break; break;
default: default:
/* Cannot happen */ /* Cannot happen */