comp.lang.ada
 help / color / mirror / Atom feed
* GNAT and Ariane 5 crash
@ 1996-08-02  0:00 Pascal Ledru
  1996-08-02  0:00 ` Robert Dewar
  0 siblings, 1 reply; 2+ messages in thread
From: Pascal Ledru @ 1996-08-02  0:00 UTC (permalink / raw)



The following code:

with Text_IO;
use Text_IO;
procedure test is
  F : Float;
  I : Integer;
begin
  F := 1.0e31;
  I := Integer( F );
  Put_Line( Integer'Image(I) );
end;

displays 2147483647 with GNAT (3.04 on SGI) 
while it displays (correctly I think) numeric_error
with another compiler.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-08-02  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-02  0:00 GNAT and Ariane 5 crash Pascal Ledru
1996-08-02  0:00 ` Robert Dewar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox