diff --git a/src/nvimage/FloatImage.cpp b/src/nvimage/FloatImage.cpp index 701977f..7f327e0 100644 --- a/src/nvimage/FloatImage.cpp +++ b/src/nvimage/FloatImage.cpp @@ -374,7 +374,7 @@ FloatImage * FloatImage::fastDownSample() const // 1D box filter. if (m_width == 1 || m_height == 1) { - const uint w = m_width * m_height; + w *= h; if (w & 1) {