FloatToStr with NaN two times called makes a SIGFPE exception
Original Reporter info from Mantis: WDB463
-
Reporter name:
Original Reporter info from Mantis: WDB463
- Reporter name:
Description:
The use of FloatToStr with NaN as parameter leads in the second call to a SIGFPE exception. The first call makes correct a "Nan" string.
Steps to reproduce:
program Test5_FloatToStr_2Times;
{$mode objfpc}{$H+}
uses
SysUtils, Math;
{$R *.res}
var
s,s1: string;
begin
Writeln(FloatToStr(NaN));
Writeln(FloatToStr(NaN));
Readln;
end.
Mantis conversion info:
- Mantis ID: 19368
- Fixed in version: 2.6.1
- Fixed in revision: 22877 (#6345aee8)
- Monitored by: » Adriaan van Os (Adriaan van Os)