libmemdraw: apply erik quanstros fix for sign preserving in byteaddr()

This commit is contained in:
cinap_lenrek 2014-02-01 09:54:09 +01:00
parent d77455ab2d
commit 9a52340313

View file

@ -143,8 +143,7 @@ byteaddr(Memimage *i, Point p)
{ {
uchar *a; uchar *a;
a = i->data->bdata+i->zero+sizeof(ulong)*p.y*i->width; a = i->data->bdata+i->zero+(int)(sizeof(ulong)*p.y*i->width);
if(i->depth < 8){ if(i->depth < 8){
/* /*
* We need to always round down, * We need to always round down,