-- larger type for the operands, to prevent spurious constraint
-- errors on large legal literals of the type.
- if Modulus (Etype (N)) > UI_From_Int (Int (Integer'Last)) then
+ if Modulus (Etype (N)) > Int (Integer'Last) then
Target_Type := Standard_Long_Long_Integer;
else
Target_Type := Standard_Integer;
-- Reject patently improper size values
if Is_Elementary_Type (T)
- and then Siz > UI_From_Int (Int'Last)
+ and then Siz > Int'Last
then
Error_Msg_N ("Size value too large for elementary type", N);
Len := String_Length (Strval (N));
- if UI_From_Int (Len) > String_Type_Len (Bas) then
+ if Len > String_Type_Len (Bas) then
-- Issue message. Note that this message is a warning if the
-- string literal is not marked as static (happens in some cases
Comp_Typ_Hi : constant Node_Id :=
Type_High_Bound (Component_Type (Typ));
- Char_Val : Uint;
+ Char_Val : Int;
begin
if Compile_Time_Known_Value (Comp_Typ_Lo)
and then Compile_Time_Known_Value (Comp_Typ_Hi)
then
for J in 1 .. Strlen loop
- Char_Val := UI_From_Int (Int (Get_String_Char (Str, J)));
+ Char_Val := Int (Get_String_Char (Str, J));
if Char_Val < Expr_Value (Comp_Typ_Lo)
or else Char_Val > Expr_Value (Comp_Typ_Hi)
-- heavy artillery for this situation, but it is hard work to avoid.
declare
- Lits : constant List_Id := New_List;
+ Lits : constant List_Id := New_List;
P : Source_Ptr := Loc + 1;
C : Char_Code;