summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/lib/descriptor.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2000-09-19 11:47:16 +0000
committerMichael Meskes <meskes@postgresql.org>2000-09-19 11:47:16 +0000
commite9c3f0255fb54600e1c03533cc2e72d78928634d (patch)
treee8bee36a63e6a5958cd6e08faa024b1065357aa7 /src/interfaces/ecpg/lib/descriptor.c
parenta5a290cab923c8203ed01631989daa616003ebf8 (diff)
*** empty log message ***
Diffstat (limited to 'src/interfaces/ecpg/lib/descriptor.c')
-rw-r--r--src/interfaces/ecpg/lib/descriptor.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/interfaces/ecpg/lib/descriptor.c b/src/interfaces/ecpg/lib/descriptor.c
index fe4a04d2e01..37423255336 100644
--- a/src/interfaces/ecpg/lib/descriptor.c
+++ b/src/interfaces/ecpg/lib/descriptor.c
@@ -63,29 +63,35 @@ get_int_item(int lineno, void *var, enum ECPGdtype vartype, int value)
{
switch (vartype)
{
- case ECPGt_short:
- *(short *) var = value;
+ case ECPGt_short:
+ *(short *) var = (short) value;
break;
case ECPGt_int:
- *(int *) var = value;
+ *(int *) var = (int) value;
break;
case ECPGt_long:
- *(long *) var = value;
+ *(long *) var = (long) value;
break;
case ECPGt_unsigned_short:
- *(unsigned short *) var = value;
+ *(unsigned short *) var = (unsigned short) value;
break;
case ECPGt_unsigned_int:
- *(unsigned int *) var = value;
+ *(unsigned int *) var = (unsigned int) value;
break;
case ECPGt_unsigned_long:
- *(unsigned long *) var = value;
+ *(unsigned long *) var = (unsigned long) value;
+ break;
+ case ECPGt_long_long:
+ *(long long int *) var = (long long int) value;
+ break;
+ case ECPGt_unsigned_long_long:
+ *(unsigned long long int *) var = (unsigned long long int) value;
break;
case ECPGt_float:
- *(float *) var = value;
+ *(float *) var = (float) value;
break;
case ECPGt_double:
- *(double *) var = value;
+ *(double *) var = (double) value;
break;
default:
ECPGraise(lineno, ECPG_VAR_NOT_NUMERIC, NULL);