diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-10-22 16:51:29 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-16 15:52:22 +0100 |
commit | c027b67f53339df37cf9603cd9bf64412ecb0a60 (patch) | |
tree | 364e6912e7d5dabd34821205b2af79af517fb2c9 /src | |
parent | 52ecf1958d30e09551b3b7c618e4c9d652c27259 (diff) | |
download | systemd-c027b67f53339df37cf9603cd9bf64412ecb0a60.tar.gz systemd-c027b67f53339df37cf9603cd9bf64412ecb0a60.tar.bz2 systemd-c027b67f53339df37cf9603cd9bf64412ecb0a60.zip |
util: force time multiplications to happen in longs
Diffstat (limited to 'src')
-rw-r--r-- | src/boot/efi/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/efi/util.c b/src/boot/efi/util.c index fd4be681a5..b70777292e 100644 --- a/src/boot/efi/util.c +++ b/src/boot/efi/util.c @@ -39,7 +39,7 @@ UINT64 ticks_freq(VOID) { uefi_call_wrapper(BS->Stall, 1, 1000); ticks_end = ticks_read(); - return (ticks_end - ticks_start) * 1000; + return (ticks_end - ticks_start) * 1000UL; } UINT64 time_usec(VOID) { @@ -56,7 +56,7 @@ UINT64 time_usec(VOID) { return 0; } - return 1000 * 1000 * ticks / freq; + return 1000UL * 1000UL * ticks / freq; } EFI_STATUS parse_boolean(CHAR8 *v, BOOLEAN *b) { |