mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 05:00:25 +02:00
win32 interface: fixed compiler warning about mixed sign calculations
git-svn-id: trunk@15624 -
This commit is contained in:
parent
1a4769094a
commit
9e94fa854d
@ -531,7 +531,7 @@ begin
|
||||
DataSize := (Windows.MulDiv(ADesc.BitsPerPixel, ADesc.Width, 8) + 3) and not 3;
|
||||
Align := DataSize and 3;
|
||||
if Align <> 0
|
||||
then DataSize := DataSize + (4 - Align);
|
||||
then DataSize := DataSize + PtrUInt(4 - Align);
|
||||
DataSize := DataSize * ADesc.Height;
|
||||
if DataSize > ARawImage.DataSize
|
||||
then DataSize := ARawImage.DataSize;
|
||||
|
Loading…
Reference in New Issue
Block a user