]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
exp_strm.adb (Build_Elementary_Input_Call, [...]): Fix incorrect condition in circuit...
authorThomas Quinot <quinot@adacore.com>
Wed, 20 Aug 2008 14:27:01 +0000 (16:27 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Wed, 20 Aug 2008 14:27:01 +0000 (16:27 +0200)
2008-08-20  Thomas Quinot  <quinot@adacore.com>

* exp_strm.adb (Build_Elementary_Input_Call,
Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
selects the stream attribute routines for long float types.

From-SVN: r139299

gcc/ada/exp_strm.adb

index 6f34cae3c4c83925ffdf2e9f0dfaed80252246d3..d0b1b7f43a57824cd294990cbd363b00bcb6e005 100644 (file)
@@ -521,7 +521,7 @@ package body Exp_Strm is
 
          elsif P_Size <= Standard_Long_Float_Size
            and then (Standard_Long_Float_Size /= Standard_Long_Long_Float_Size
-                       or else Rt_Type = Standard_Float)
+                       or else Rt_Type = Standard_Long_Float)
          then
             Lib_RE := RE_I_LF;
 
@@ -735,7 +735,7 @@ package body Exp_Strm is
 
          elsif P_Size <= Standard_Long_Float_Size
            and then (Standard_Long_Float_Size /= Standard_Long_Long_Float_Size
-                      or else Rt_Type = Standard_Float)
+                      or else Rt_Type = Standard_Long_Float)
          then
             Lib_RE := RE_W_LF;