ref: de0679585d9a05ae99f4c90eac4f8bb7890e8cbe
parent: 4a4040bdd2a6c3dec5b39352212f8d7cbad40ce4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Feb 1 04:54:09 EST 2014
libmemdraw: apply erik quanstros fix for sign preserving in byteaddr()
--- a/sys/src/libmemdraw/alloc.c
+++ b/sys/src/libmemdraw/alloc.c
@@ -143,8 +143,7 @@
{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,
--
⑨