Commit 1c7f64f0 authored by Richard Gobeille's avatar Richard Gobeille
Browse files

engine: promote globalypanning to type of globalzd before shift

parent 324edd1a
......@@ -4063,7 +4063,7 @@ static void parascan(char dastat, int32_t bunch)
globaltilesizy = tsizy;
globalyscale = 65536 / tsizy;
globalshiftval = 0;
globalzd = divscale32(((tsizy>>1)+dapyoffs), tsizy) + ((uint32_t)globalypanning<<24);
globalzd = divscale32(((tsizy>>1)+dapyoffs), tsizy) + (decltype(globalzd)(globalypanning)<<24);
}
else
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment