Bug fix: conversion is OK if arg = 0.0
This commit is contained in:
parent
9f61a33c9f
commit
ae0cde301d
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue