Browse Source

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 8 years ago
parent
commit
c6436a1bb1
1 changed files with 1 additions and 1 deletions
  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));