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; sign := r < 0.0D;
IF sign THEN r := -r END; IF sign THEN r := -r END;
ok := TRUE; ok := TRUE;
IF NOT (r / 10.0D < r) THEN IF (r <> 0.0D) AND NOT (r / 10.0D < r) THEN
(* assume Nan or Infinity *) (* assume Nan or Infinity *)
r := 0.0D; r := 0.0D;
ok := FALSE; ok := FALSE;