void base (int in, int out)
{
- if (in > 0) {
+ if ((in > 0) && (in < 37)) {
set_base (in, in);
- if (out > 0) {
+ if ((out > 0) && (out < 37)) {
set_base (in, out);
} else if (out != - 1) {
VERBOSE (WARNING, fprintf (stdout, "error incorrect output base (%d)\n", out));
case Precision:
return format ((int)op0);
case Base:
- base (op0, op1);
+ base ((int)op0, (int)op1);
break;
}