From 13b2410ef3f178e7adb7d7b1d634648e6be37715 Mon Sep 17 00:00:00 2001 From: Nick Date: Thu, 29 Aug 2019 14:18:26 -0400 Subject: Fix a few ambiguity warning --- src/cuda-sim/half.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cuda-sim/half.h') diff --git a/src/cuda-sim/half.h b/src/cuda-sim/half.h index 8f1a8eb..9f74bb7 100644 --- a/src/cuda-sim/half.h +++ b/src/cuda-sim/half.h @@ -642,10 +642,10 @@ namespace half_float if(exp > 16) { if(R == std::round_toward_infinity) - return hbits | 0x7C00 - (hbits>>15); + return hbits | (0x7C00 - (hbits>>15)); else if(R == std::round_toward_neg_infinity) - return hbits | 0x7BFF + (hbits>>15); - return hbits | 0x7BFF + (R!=std::round_toward_zero); + return hbits | (0x7BFF + (hbits>>15)); + return hbits | (0x7BFF + (R!=std::round_toward_zero)); } if(exp < -13) value = std::ldexp(value, 24); -- cgit v1.3