Explorar o código

vga: fix a lingering misuse of unsigned long -> uint32_t

I don't know how we missed this but it caused lots of problems.
It gets us just a bit further.

Change-Id: I6488c17ebb5d04caa40d232f90dedcbd80b3bdaa
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Ronald G. Minnich %!s(int64=8) %!d(string=hai) anos
pai
achega
c6436a1bb1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      sys/src/libmemdraw/defont.c

+ 1 - 1
sys/src/libmemdraw/defont.c

@@ -58,7 +58,7 @@ getmemdefont(void)
 		return nil;
 	}
 
-	hdr = p+Dy(r)*i->width*sizeof(unsigned long);
+	hdr = p+Dy(r)*i->width*sizeof(uint32_t);
 	n = atoi(hdr);
 	p = hdr+3*12;
 	fc = malloc(sizeof(Fontchar)*(n+1));