db: Correct DBF_CHAR range in recGbl.c

Seems invisible, but spotted by Lawrence T. Prevatte III.
This commit is contained in:
Andrew Johnson
2015-06-23 15:51:00 -05:00
parent 65e781d58a
commit 84c3ec7c64
+3 -3
View File
@@ -313,11 +313,11 @@ static void getMaxRangeValues(short field_type, double *pupper_limit,
{
switch(field_type){
case DBF_CHAR:
*pupper_limit = -128.0;
*plower_limit = 127.0;
*pupper_limit = (double) CHAR_MAX;
*plower_limit = (double) CHAR_MIN;
break;
case DBF_UCHAR:
*pupper_limit = 255.0;
*pupper_limit = (double) UCHAR_MAX;
*plower_limit = 0.0;
break;
case DBF_SHORT: