Skip to content

Commit

Permalink
Fix signedness of lines
Browse files Browse the repository at this point in the history
  • Loading branch information
uyjulian committed May 24, 2022
1 parent edbe7fe commit 2f0e077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LayerBitmapIntf.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class tTVPBaseBitmap
ttstr((tjs_int)height-1));
}

return (tjs_uint8*)bmpdata + (l * pitch);
return (tjs_uint8*)bmpdata + (pitch * (tjs_int)l);
}
void * GetScanLineForWrite(tjs_uint l)
{
Expand All @@ -49,7 +49,7 @@ class tTVPBaseBitmap
ttstr((tjs_int)height-1));
}

return (tjs_uint8*)bmpdata + (l * pitch);
return (tjs_uint8*)bmpdata + (pitch * (tjs_int)l);
}
tjs_int GetPitchBytes() const
{
Expand Down

0 comments on commit 2f0e077

Please sign in to comment.