Skip to content

Commit 9b7cd92

Browse files
committed
Correction: overlays must refer to objects
1 parent 2ba8f96 commit 9b7cd92

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/courses/advanced-ada/parts/data_types/numerics.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3460,11 +3460,11 @@ machine when assigning values to objects of decimal type. For example:
34603460
Put_Line ("-----------------------------");
34613461
end Show_Machine_Implementation;
34623462

3463-
In this example, we use the overlays :ada:`Int_T0_D4` and :ada:`Int_T2_D6` to
3464-
retrieve the integer representation of the decimal fixed-point types
3465-
:ada:`T0_D4` and :ada:`T2_D6`. In the output of this example, we might see the
3466-
following integer representation of the real values for the :ada:`T0_D4` and
3467-
:ada:`T2_D6` types:
3463+
In this example, we use the overlays :ada:`V_Int_T0_D4` and :ada:`V_Int_T2_D6`
3464+
to retrieve the integer representation of the decimal variables :ada:`V_T0_D4`
3465+
and :ada:`V_T2_D6`. By doing this, we retrieve the machine representation of
3466+
the real values for the :ada:`T0_D4` and :ada:`T2_D6` types. The table shows
3467+
the values that we get by running the test application:
34683468

34693469
+-------------+-----------------------------+
34703470
| Real value | Integer representation |

0 commit comments

Comments
 (0)