Skip to content

Commit

Permalink
Force Time'Size to 64 bits.
Browse files Browse the repository at this point in the history
  * common/a-reatim.ads (Time): use "for Time'Size" to force the size
      to 64 bits (52 bits used otherwise, since Tie was changed to be
      >= 0.0).
  • Loading branch information
simonjwright committed Apr 19, 2018
1 parent 4b25f1d commit eac4eb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/a-reatim.ads
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ private
-- FreeRTOSConfig.h has set configTICK_RATE_HZ to 1000

type Time is new Time_Base range 0.0 .. (2 ** 32 - 1) * FreeRTOS_Tick;
for Time'Size use 64;
-- and configUSE_16_BIT_TICKS to 0 (so we get 32-bit clock values).

Time_First : constant Time := Time'First;
Expand Down

0 comments on commit eac4eb3

Please sign in to comment.