aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/unix
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-06-10 19:11:14 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-06-10 19:21:04 +0200
commitc2ff9af2eb8d372af3f6cf8fc2953dc90f9ead78 (patch)
tree80ce85a171221a8a8e9c65a11d13fe54cb61c766 /erts/emulator/sys/unix
parent222b0d728869feae00fad9e7da7633e7cb349c6e (diff)
downloadotp-c2ff9af2eb8d372af3f6cf8fc2953dc90f9ead78.tar.gz
otp-c2ff9af2eb8d372af3f6cf8fc2953dc90f9ead78.tar.bz2
otp-c2ff9af2eb8d372af3f6cf8fc2953dc90f9ead78.zip
erts: Fix undefined shift to msb in monotonic time
Diffstat (limited to 'erts/emulator/sys/unix')
-rw-r--r--erts/emulator/sys/unix/erl_unix_sys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/sys/unix/erl_unix_sys.h b/erts/emulator/sys/unix/erl_unix_sys.h
index 241540b894..3a0d23cd36 100644
--- a/erts/emulator/sys/unix/erl_unix_sys.h
+++ b/erts/emulator/sys/unix/erl_unix_sys.h
@@ -163,7 +163,7 @@ typedef long long ErtsSysHrTime;
typedef ErtsMonotonicTime ErtsSystemTime;
typedef ErtsSysHrTime ErtsSysPerfCounter;
-#define ERTS_MONOTONIC_TIME_MIN (((ErtsMonotonicTime) 1) << 63)
+#define ERTS_MONOTONIC_TIME_MIN ((ErtsMonotonicTime) (1ULL << 63))
#define ERTS_MONOTONIC_TIME_MAX (~ERTS_MONOTONIC_TIME_MIN)
/*