Fix a shitload of warnings in 64 bits mode

Former-commit-id: 5bc0c622c20eae45df51bb1ee62e5ed566e58a1b [formerly a8befbed30cb897ce876fd3b46a3585e1b70613e]
Former-commit-id: 999225e414c0d6a3e9c6868f040b68045b2ba724
This commit is contained in:
Lynix
2016-06-13 21:09:55 +02:00
parent 6eca751ee5
commit c528640d80
39 changed files with 191 additions and 188 deletions

View File

@@ -100,7 +100,7 @@ namespace Nz
counter |= blueMask;
counter |= alphaMask;
bitsPerPixel = counter.Count();
bitsPerPixel = static_cast<UInt8>(counter.Count());
}
inline bool PixelFormatInfo::Validate() const
@@ -116,7 +116,7 @@ namespace Nz
for (unsigned int i = 0; i < 4; ++i)
{
unsigned int usedBits = masks[i]->Count();
UInt8 usedBits = static_cast<UInt8>(masks[i]->Count());
if (usedBits == 0)
continue;