diff options
Diffstat (limited to 'o3d/core/cross/bitmap.cc')
-rw-r--r-- | o3d/core/cross/bitmap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/o3d/core/cross/bitmap.cc b/o3d/core/cross/bitmap.cc index f2c96a0..1672a4e 100644 --- a/o3d/core/cross/bitmap.cc +++ b/o3d/core/cross/bitmap.cc @@ -344,11 +344,11 @@ void Bitmap::DrawImage(const Bitmap& src_img, DCHECK(src_img.image_data()); DCHECK(image_data()); - if (dst_level < 0 || dst_level >= num_mipmaps()) { + if (dst_level < 0 || dst_level >= static_cast<int>(num_mipmaps())) { O3D_ERROR(service_locator()) << "Destination Mip out of range"; } - if (src_level < 0 || src_level >= src_img.num_mipmaps()) { + if (src_level < 0 || src_level >= static_cast<int>(src_img.num_mipmaps())) { O3D_ERROR(service_locator()) << "Source Mip out of range"; } |