pc(1): bugfix: allow setting output base to 0 (thanks, deuteron)
This commit is contained in:
parent
9e926eeb4e
commit
6d96b35fad
|
@ -388,7 +388,7 @@ stat: { last = nil; }
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue