-/* $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"
{
case ECPGt_unsigned_short:
/* ((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;
case ECPGt_unsigned_int:
/* ((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;
case ECPGt_unsigned_long:
/* ((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;
default:
/* Cannot happen */