code: 9ferno

Download patch

ref: faa3a795058645892bb4b7ecc107914c80b87b2c
parent: 72a15e9d68ef72ea9e45f7563f1d1c85c433caae
author: joe9 <joe9mail@gmail.com>
date: Wed Jul 7 07:03:53 EDT 2021

replace some more ulong with uintptr

--- a/utils/c2l/c2l.c
+++ b/utils/c2l/c2l.c
@@ -130,7 +130,7 @@
 		return;
 	}
 	while(t != T){
-		print("%d(%d)[%x] ", t->etype, t->mark, (int)t);
+		print("%d(%d)[%zx] ", t->etype, t->mark, (intptr)t);
 		if(isadt(t))
 			break;
 		t = t->link;
--- a/utils/c2l/lex.c
+++ b/utils/c2l/lex.c
@@ -1473,7 +1473,7 @@
 {
 	void *p;
 
-	while((ulong)hunk & MAXALIGN) {
+	while((uintptr)hunk & MAXALIGN) {
 		hunk++;
 		nhunk--;
 	}