shithub: front

Download patch

ref: 438bda55bb6f41735651bcaca77907792fb5d9dd
parent: 83b6b42570f7ac375586c640305227b1793a16f0
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Aug 12 03:47:52 EDT 2025

libmach/test: avoid 64-bit value in switch

--- a/sys/src/libmach/test/q.c
+++ b/sys/src/libmach/test/q.c
@@ -1262,7 +1262,7 @@
 		return 4;
 	}
 	off -= nelem(instab)*4;
-	switch(off%8){
+	switch((uint)off%8){
 	case 0:
 		o = parsefmt(&instab2[off/8].pfx);
 		PUT4(((uchar*)buf), o);
--