libmemdraw: apply erik quanstros fix for sign preserving in byteaddr()
This commit is contained in:
parent
d77455ab2d
commit
9a52340313
1 changed files with 1 additions and 2 deletions
|
@ -143,8 +143,7 @@ byteaddr(Memimage *i, Point p)
|
|||
{
|
||||
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){
|
||||
/*
|
||||
* We need to always round down,
|
||||
|
|
Loading…
Reference in a new issue