From 10f2dba07e254b3112946d2899fd9de0db79a64f Mon Sep 17 00:00:00 2001 From: sanctum32 Date: Mon, 2 Feb 2015 19:52:41 +0000 Subject: [PATCH] Fixed clang build --- dep/src/g3dlite/uint128.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dep/src/g3dlite/uint128.cpp b/dep/src/g3dlite/uint128.cpp index 1f596fc3e..70e2bed37 100644 --- a/dep/src/g3dlite/uint128.cpp +++ b/dep/src/g3dlite/uint128.cpp @@ -17,8 +17,8 @@ static void addAndCarry(const uint64& _a, const uint64& _b, uint64& carry, uint6 // Break each number into 4 32-bit chunks. Since we are using uints, right-shifting will fill with zeros. // This eliminates the need to and with 0xFFFFFFFF. - uint32 a [2] = {_a & 0xFFFFFFFF, _a >> 32}; - uint32 b [2] = {_b & 0xFFFFFFFF, _b >> 32}; + uint32 a [2] = {static_cast(_a & 0xFFFFFFFF), static_cast(_a >> 32)}; + uint32 b [2] = {static_cast(_b & 0xFFFFFFFF), static_cast(_b >> 32)}; uint64 tmp = uint64(a[0]) + b[0];