diff options
Diffstat (limited to '3rdparty/bimg/src/bimg_p.h')
-rw-r--r-- | 3rdparty/bimg/src/bimg_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/3rdparty/bimg/src/bimg_p.h b/3rdparty/bimg/src/bimg_p.h index a9a4b2ae42f..557bcaa22df 100644 --- a/3rdparty/bimg/src/bimg_p.h +++ b/3rdparty/bimg/src/bimg_p.h @@ -48,7 +48,7 @@ namespace bimg if (_hasMips) { const uint32_t max = bx::max(_width, _height, _depth); - const uint32_t num = 1 + uint32_t(bx::log2(float(max) ) ); + const uint32_t num = 1 + uint32_t(bx::log2((int32_t)max) ); return uint8_t(num); } |