git: 9front

Download patch

ref: 307449ef8f78ec97b56e18577bb6064eb95ee72c
parent: 0d8b07da528fbf62e9d85d6177b0caddcab35d36
author: aiju <devnull@localhost>
date: Mon Sep 5 11:48:46 EDT 2016

pc(1): bugfix: allow setting output base to 0 (thanks, deuteron)

--- a/sys/src/cmd/pc.y
+++ b/sys/src/cmd/pc.y
@@ -388,7 +388,7 @@
 		save = outbase;
 		if(!fail) 
 			outbase = mptoi($3);
-		if(outbase != 2 && outbase != 8 && outbase != 10 && outbase != 16){
+		if(outbase != 0 && outbase != 2 && outbase != 8 && outbase != 10 && outbase != 16){
 			error("no.");
 			outbase = save;
 		}
--