From aaafb1a5de33d7d73ef352f6cd49f9478f75fb29 Mon Sep 17 00:00:00 2001 From: Ben Franksen Date: Sat, 25 Feb 2017 16:42:29 -0500 Subject: [PATCH] db: call rset::get_precision with wrong type --- src/db/dbConvert.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/db/dbConvert.c b/src/db/dbConvert.c index deb1b1319..8b52edc05 100644 --- a/src/db/dbConvert.c +++ b/src/db/dbConvert.c @@ -1628,7 +1628,7 @@ static long getFloatString( char *pbuffer = (char *)pto; float *psrc=(float *)(paddr->pfield); long status = 0; - int precision = 6; + long precision = 6; struct rset *prset = 0; if(paddr) prset = dbGetRset(paddr); @@ -1838,7 +1838,7 @@ static long getDoubleString( char *pbuffer = (char *)pto; double *psrc=(double *)(paddr->pfield); long status = 0; - int precision = 6; + long precision = 6; struct rset *prset = 0; if(paddr) prset = dbGetRset(paddr); @@ -3940,7 +3940,7 @@ static long putFloatString( const float *pbuffer = (const float *)pfrom; char *pdest=(char *)(paddr->pfield); long status = 0; - int precision = 6; + long precision = 6; struct rset *prset = dbGetRset(paddr); short size=paddr->field_size; @@ -4150,7 +4150,7 @@ static long putDoubleString( const double *pbuffer = (const double *)pfrom; char *pdest=(char *)(paddr->pfield); long status = 0; - int precision = 6; + long precision = 6; struct rset *prset = dbGetRset(paddr); short size=paddr->field_size;