mirror of
https://github.com/libretro/scummvm.git
synced 2026-11-07 12:38:04 -10:00
VIDEO: Fix VC-1 MAX type mismatch on platforms with unsigned long uint32
This commit is contained in:
1 parent
e730410dd0
commit
5ae7720bfb
1 file changed
+1
-1
@@ -13193,7 +13193,7 @@ static void guess_dc(ERContext *s, int16 *dc, int w, int h, ptrdiff_t stride, in
|
||||
weight_sum = 0;
|
||||
guess = 0;
|
||||
for (j = 0; j < 4; j++) {
|
||||
int64 weight = 256 * 256 * 256 * 16 / MAX(dist[b_x + b_y * stride][j], 1U);
|
||||
int64 weight = 256 * 256 * 256 * 16 / MAX<uint32>(dist[b_x + b_y * stride][j], 1);
|
||||
guess += weight * (int64)col[b_x + b_y * stride][j];
|
||||
weight_sum += weight;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user