Some fixes for the intel compiler.
A few warnings are still there, but it should be safe to ignore them.
This commit is contained in:
parent
08f217e22c
commit
704cfa4051
3 changed files with 26 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
|||
#include "sdlmain.hpp"
|
||||
#include "physicsfswrapper.hpp"
|
||||
#include "compatibility.h"
|
||||
#include "casts.hpp"
|
||||
#include <SDL2/SDL.h>
|
||||
#include <stdexcept>
|
||||
#include <cassert>
|
||||
|
@ -151,7 +152,7 @@ namespace cloonel {
|
|||
parSize.x(),
|
||||
parSize.y(),
|
||||
bpp,
|
||||
static_cast<int>(stride),
|
||||
checked_numcast<int>(stride),
|
||||
redMask,
|
||||
greenMask,
|
||||
blueMask,
|
||||
|
@ -185,7 +186,7 @@ namespace cloonel {
|
|||
return;
|
||||
PhysicsFSFile& rawfile = *static_cast<PhysicsFSFile*>(png_get_io_ptr(parPngPtr));
|
||||
|
||||
const int64_t read = rawfile.Read(static_cast<void*>(parOutBytes), static_cast<uint32_t>(parByteCountToRead), 1);
|
||||
const int64_t read = rawfile.Read(static_cast<void*>(parOutBytes), checked_numcast<uint32_t>(parByteCountToRead), 1);
|
||||
if (read != static_cast<int64_t>(parByteCountToRead))
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue