summaryrefslogtreecommitdiff
path: root/gcc/ada/a-ztdeio.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/a-ztdeio.adb')
-rw-r--r--gcc/ada/a-ztdeio.adb10
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/ada/a-ztdeio.adb b/gcc/ada/a-ztdeio.adb
index cc61e8cbff9..52f8820a787 100644
--- a/gcc/ada/a-ztdeio.adb
+++ b/gcc/ada/a-ztdeio.adb
@@ -54,16 +54,10 @@ package body Ada.Wide_Wide_Text_IO.Decimal_IO is
is
begin
if Num'Size > Integer'Size then
- Item := Num (Aux.Get_LLD (TFT (File), Width, Scale));
- -- Item := Num'Fixed_Value (Aux.Get_LLD (TFT (File), Width, Scale));
- -- above is what we should write, but gets assert error ???
-
+ Item := Num'Fixed_Value (Aux.Get_LLD (TFT (File), Width, Scale));
else
- Item := Num (Aux.Get_Dec (TFT (File), Width, Scale));
- -- Item := Num'Fixed_Value (Aux.Get_Dec (TFT (File), Width, Scale));
- -- above is what we should write, but gets assert error ???
+ Item := Num'Fixed_Value (Aux.Get_Dec (TFT (File), Width, Scale));
end if;
-
exception
when Constraint_Error => raise Data_Error;
end Get;