]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/pc.y
upas/fs: fix more locking bugs, remove debugging clutter, remove planb mbox code
[plan9front.git] / sys / src / cmd / pc.y
index d6db26bbaa56fe3adced0f55f7baa59b1cc7122e..73eb301100893ed424e764357aee0b73623ff155 100644 (file)
@@ -299,7 +299,7 @@ numprint(Num *n)
        if(mpcmp(n, mpzero) != 0)
                switch(b){
                case 16: *--q = 'x'; *--q = '0'; break;
-               case 10: if(outbase != 0 && outbase != 10) {*--q = 'd'; *--q = '0';} break;
+               case 10: if(outbase != 0 && outbase != 10 || inbase != 10) {*--q = 'd'; *--q = '0';} break;
                case 8: *--q = '0'; break;
                case 2: *--q = 'b'; *--q = '0'; break;
                }