diff --git a/Source/OpenTK/Math/Half.cs b/Source/OpenTK/Math/Half.cs index 3e5f4063..06ff241c 100644 --- a/Source/OpenTK/Math/Half.cs +++ b/Source/OpenTK/Math/Half.cs @@ -228,7 +228,7 @@ namespace OpenTK mantissa = mantissa + 0x00000fff + ((mantissa >> 13) & 1); - if ((mantissa & 0x00800000) == 1) + if ((mantissa & 0x00800000) != 0) { mantissa = 0; // overflow in significand, exponent += 1; // adjust exponent