diff --git a/src/libcore/bitmap.cpp b/src/libcore/bitmap.cpp index 0b1d35a1..16e9cf35 100644 --- a/src/libcore/bitmap.cpp +++ b/src/libcore/bitmap.cpp @@ -164,7 +164,7 @@ Bitmap::Bitmap(int width, int height, int bpp) m_gamma = -1.0f; // sRGB // 1-bit masks are stored in a packed format. - m_size = (size_t) std::ceil((m_width * m_height * m_bpp) / 8.0); + m_size = (size_t) std::ceil(((double) m_width * m_height * m_bpp) / 8.0); m_data = static_cast(allocAligned(m_size)); }