summaryrefslogtreecommitdiffstats
path: root/o3d/core/cross/bitmap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/core/cross/bitmap.cc')
-rw-r--r--o3d/core/cross/bitmap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/o3d/core/cross/bitmap.cc b/o3d/core/cross/bitmap.cc
index e44f5d9..8069451 100644
--- a/o3d/core/cross/bitmap.cc
+++ b/o3d/core/cross/bitmap.cc
@@ -403,11 +403,11 @@ void Bitmap::DrawImage(const Bitmap& src_img,
void Bitmap::GenerateMips(int source_level, int num_levels) {
- if (source_level >= num_mipmaps() || source_level < 0) {
+ if (source_level >= static_cast<int>(num_mipmaps()) || source_level < 0) {
O3D_ERROR(service_locator()) << "source level out of range.";
return;
}
- if (source_level + num_levels >= num_mipmaps() || num_levels < 0) {
+ if (source_level + num_levels >= static_cast<int>(num_mipmaps()) || num_levels < 0) {
O3D_ERROR(service_locator()) << "num levels out of range.";
return;
}