Bug fix: conversion is OK if arg = 0.0

This commit is contained in:
ceriel 1997-01-27 14:06:51 +00:00
parent 9f61a33c9f
commit ae0cde301d

View file

@ -57,7 +57,7 @@ IMPLEMENTATION MODULE RealConversions;
sign := r < 0.0D;
IF sign THEN r := -r END;
ok := TRUE;
IF NOT (r / 10.0D < r) THEN
IF (r <> 0.0D) AND NOT (r / 10.0D < r) THEN
(* assume Nan or Infinity *)
r := 0.0D;
ok := FALSE;