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:
parent
6055fda73d
commit
1ef4115578
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue