|
|
@@ -60,7 +60,7 @@ namespace detail
|
|
|
//
|
|
|
|
|
|
detail::uif result;
|
|
|
- result.i = s << 31;
|
|
|
+ result.i = (unsigned int)(s << 31);
|
|
|
return result.f;
|
|
|
}
|
|
|
else
|
|
|
@@ -88,7 +88,7 @@ namespace detail
|
|
|
//
|
|
|
|
|
|
uif result;
|
|
|
- result.i = (s << 31) | 0x7f800000;
|
|
|
+ result.i = (unsigned int)((s << 31) | 0x7f800000);
|
|
|
return result.f;
|
|
|
}
|
|
|
else
|
|
|
@@ -98,7 +98,7 @@ namespace detail
|
|
|
//
|
|
|
|
|
|
uif result;
|
|
|
- result.i = (s << 31) | 0x7f800000 | (m << 13);
|
|
|
+ result.i = (unsigned int)((s << 31) | 0x7f800000 | (m << 13));
|
|
|
return result.f;
|
|
|
}
|
|
|
}
|
|
|
@@ -115,7 +115,7 @@ namespace detail
|
|
|
//
|
|
|
|
|
|
uif Result;
|
|
|
- Result.i = (s << 31) | (e << 23) | m;
|
|
|
+ Result.i = (unsigned int)((s << 31) | (e << 23) | m);
|
|
|
return Result.f;
|
|
|
}
|
|
|
|
|
|
@@ -123,7 +123,7 @@ namespace detail
|
|
|
{
|
|
|
uif Entry;
|
|
|
Entry.f = f;
|
|
|
- int i = Entry.i;
|
|
|
+ int i = (int)Entry.i;
|
|
|
|
|
|
//
|
|
|
// Our floating point number, f, is represented by the bit
|