win32 interface: fixed compiler warning about mixed sign calculations

git-svn-id: trunk@15624 -
This commit is contained in:
vincents 2008-06-30 09:04:58 +00:00
parent 1a4769094a
commit 9e94fa854d

View File

@ -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;