Skip to content

Commit 46a5240

Browse files
committed
Force Time'Size to 64 bits.
* 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).
1 parent f3b1725 commit 46a5240

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/a-reatim.ads

+1
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ private
155155
-- FreeRTOSConfig.h has set configTICK_RATE_HZ to 1000
156156

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

160161
Time_First : constant Time := Time'First;

0 commit comments

Comments
 (0)