3 with Unchecked_Conversion
;
5 procedure Unchecked_Convert10
is
7 subtype Unsigned_Type
is Integer range 2_034
.. 2_164
;
9 subtype Signed_Type
is Integer range -2048 .. 2047;
11 function To_Signed_Type
is
12 new Unchecked_Conversion
(Source
=> Unsigned_Type
, Target
=> Signed_Type
);
14 function To_Unsigned_Type
is
15 new Unchecked_Conversion
(Source
=> Signed_Type
, Target
=> Unsigned_Type
);
23 Temp
:= To_Signed_Type
(Data
);
27 Data
:= To_Unsigned_Type
(Temp
);
33 Temp
:= To_Signed_Type
(Data
);
37 Data
:= To_Unsigned_Type
(Temp
);