diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-01 09:54:09 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-01 09:54:09 +0100 |
commit | 9a5234031355acf4c6fec449f56136ad1300d71a (patch) | |
tree | eae651936a11f145ec60b3447847a6491276370e /sys/src/libmemdraw | |
parent | d77455ab2ddfbb74917f98a3344c47403b0461e8 (diff) |
libmemdraw: apply erik quanstros fix for sign preserving in byteaddr()
Diffstat (limited to 'sys/src/libmemdraw')
-rw-r--r-- | sys/src/libmemdraw/alloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/libmemdraw/alloc.c b/sys/src/libmemdraw/alloc.c index aa3597f71..0dba4503f 100644 --- a/sys/src/libmemdraw/alloc.c +++ b/sys/src/libmemdraw/alloc.c @@ -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, |