Commit 7d620fc7 authored by Claes Sjofors's avatar Claes Sjofors

Merge branch 'master'

parents 01f3f11d 5962da0e
...@@ -333,9 +333,9 @@ bool wb_print_wbl::printValue(wb_volume& v, pwr_eType type, unsigned int flags, ...@@ -333,9 +333,9 @@ bool wb_print_wbl::printValue(wb_volume& v, pwr_eType type, unsigned int flags,
sprintf(sval, "%d", *(pwr_tBoolean*)val); sprintf(sval, "%d", *(pwr_tBoolean*)val);
break; break;
case pwr_eType_Float32: case pwr_eType_Float32:
if (feqf(*(pwr_tFloat32*)val, FLT_MIN)) if (*(pwr_tFloat32 *)val == FLT_MIN)
strcpy(sval, "FLT_MIN"); strcpy(sval, "FLT_MIN");
else if (feqf(*(pwr_tFloat32*)val, FLT_MAX)) else if (*(pwr_tFloat32 *)val == FLT_MAX)
strcpy(sval, "FLT_MAX"); strcpy(sval, "FLT_MAX");
else else
sprintf(sval, "%.*e", FLT_DIG, *(pwr_tFloat32*)val); sprintf(sval, "%.*e", FLT_DIG, *(pwr_tFloat32*)val);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment