Skip to content

Commit

Permalink
Fix warnings in Bitmap.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
dvicini committed Jan 29, 2020
1 parent 3e5b791 commit fc2b3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void Bitmap::savePNG(const std::string &filename) {
}
}

int ret = stbi_write_png(path.c_str(), cols(), rows(), 3, rgb8, 3 * cols());
int ret = stbi_write_png(path.c_str(), (int) cols(), (int) rows(), 3, rgb8, 3 * (int) cols());
if (ret == 0) {
cout << "Bitmap::savePNG(): Could not save PNG file \"" << path << "%s\"" << endl;
}
Expand Down

0 comments on commit fc2b3c2

Please sign in to comment.