Merge pull request #128 from Frassle/half-fix

Fix a bug in single->half conversion.
This commit is contained in:
thefiddler 2014-06-02 13:03:30 +02:00
commit aa4e8ef9aa

View file

@ -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