In a command 'meas tran teval when v(2)=1' the rhs

should be treated as a number '1', not as a vector v(1)
This commit is contained in:
Holger Vogt 2020-11-18 16:38:21 +01:00
parent 6055fda73d
commit 1ef4115578
1 changed files with 8 additions and 0 deletions

View File

@ -1147,10 +1147,18 @@ measure_valid_vector(
)
{
struct dvec *d; /* measurement vector */
char* ptr;
long num;
if (varname == NULL)
return TRUE;
/* If varname is a simple number, don't use this as a
name of a vetor, but as a number */
num = strtol(varname, &ptr, 10);
if (*ptr == '\0')
return FALSE;
d = vec_get(varname);
if (d == NULL)
return FALSE;