make implicit type conversions explicit

This commit is contained in:
Konstantin Käfer
2014-02-21 13:08:13 +01:00
parent 4418f2d1c8
commit e382cab17d
15 changed files with 40 additions and 40 deletions

View File

@@ -180,7 +180,7 @@ void Sprite::loadImage(const std::string& data) {
png_read_update_info(png, info);
unsigned int rowbytes = png_get_rowbytes(png, info);
png_size_t rowbytes = png_get_rowbytes(png, info);
assert(width * 4 == rowbytes);
img = (char *)malloc(width * height * 4);