Skip to content

Commit

Permalink
3avirt: Cast RTC variables to 64
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyGoat authored Oct 26, 2023
1 parent 88a9ee1 commit 20e1d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Targets/Bonito3avirt/Bonito/tgt_machdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ void cfg_coherent(int ac, char *av[])

time_t tgt_gettime()
{
u64 rtc_ns = RTC_TIME_LOW | RTC_TIME_HIGH << 32;
u64 rtc_ns = ((u64)RTC_TIME_LOW) | ((u64)RTC_TIME_HIGH) << 32;
return rtc_ns / 1000000000;
}

Expand Down

0 comments on commit 20e1d8d

Please sign in to comment.