Fixed some VS warnings
Thanks to Fraggy again ! Former-commit-id: bd0eea66714701b065892d8b69d576e7b3615dd2
This commit is contained in:
@@ -11,7 +11,7 @@ namespace
|
||||
{
|
||||
inline nzUInt8 c4to5(nzUInt8 c)
|
||||
{
|
||||
return c * (31.f/15.f);
|
||||
return static_cast<nzUInt8>(c * (31.f/15.f));
|
||||
}
|
||||
|
||||
inline nzUInt8 c4to8(nzUInt8 c)
|
||||
@@ -21,12 +21,12 @@ namespace
|
||||
|
||||
inline nzUInt8 c5to4(nzUInt8 c)
|
||||
{
|
||||
return c * (15.f/31.f);
|
||||
return static_cast<nzUInt8>(c * (15.f/31.f));
|
||||
}
|
||||
|
||||
inline nzUInt8 c5to8(nzUInt8 c)
|
||||
{
|
||||
return c * (255.f/31.f);
|
||||
return static_cast<nzUInt8>(c * (255.f/31.f));
|
||||
}
|
||||
|
||||
inline nzUInt8 c8to4(nzUInt8 c)
|
||||
@@ -36,7 +36,7 @@ namespace
|
||||
|
||||
inline nzUInt8 c8to5(nzUInt8 c)
|
||||
{
|
||||
return c * (31.f/255.f);
|
||||
return static_cast<nzUInt8>(c * (31.f/255.f));
|
||||
}
|
||||
|
||||
template<nzPixelFormat from, nzPixelFormat to>
|
||||
|
||||
Reference in New Issue
Block a user