diff options
Diffstat (limited to 'Src/params.c')
-rw-r--r-- | Src/params.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c index 2d38272a6..93319dbfe 100644 --- a/Src/params.c +++ b/Src/params.c @@ -3049,8 +3049,10 @@ convbase(char *s, zlong v, int base) sprintf(s, "0x"); else if (isset(CBASES) && base == 8 && isset(OCTALZEROES)) sprintf(s, "0"); - else + else if (base != 10) sprintf(s, "%d#", base); + else + *s = 0; s += strlen(s); } else base = -base; |