From 366153a94fb128eda4db51be3f05976e82f13adb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 14 Apr 2020 02:16:32 +0200 Subject: [PATCH] No signed left shifts. --- server/TracyEvent.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyEvent.hpp b/server/TracyEvent.hpp index 0d71c0d1..9e536f9a 100644 --- a/server/TracyEvent.hpp +++ b/server/TracyEvent.hpp @@ -135,7 +135,7 @@ public: memcpy( &hi, m_val+4, 2 ); uint32_t lo; memcpy( &lo, m_val, 4 ); - return ( int64_t( hi ) << 32 ) | lo; + return ( int64_t( uint64_t( hi ) << 32 ) ) | lo; } tracy_force_inline bool IsNonNegative() const