diff --git a/src/xspice/enh/enhtrans.c b/src/xspice/enh/enhtrans.c index bfc82bc9b..79d6b0024 100755 --- a/src/xspice/enh/enhtrans.c +++ b/src/xspice/enh/enhtrans.c @@ -555,12 +555,7 @@ static int get_poly_dimension( dim = atoi(local_tok); FREE(local_tok); - /* Notice to Stuart: on error atoi returns 0. The following - * code thus cannot distinguish between a POLY(0), which is - * meaningless, I think, and POLY(FOO) which is not a number. - * - * What about using strtol ? - */ + if (dim > 0) { return(dim); }