HPCC-12513 Clean up various windows warnings

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Shoudn't you check that dval is positive? Perhaps change the == -1.0 above to say < 0.0 ?