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

front
cinap_lenrek 2014-02-01 09:54:09 +01:00
parent d77455ab2d
commit 9a52340313
1 changed files with 1 additions and 2 deletions

View File

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