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
708b5fb48a
commit
b8e9fb75be
|
|
@ -1147,10 +1147,18 @@ measure_valid_vector(
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
struct dvec *d; /* measurement vector */
|
struct dvec *d; /* measurement vector */
|
||||||
|
char* ptr;
|
||||||
|
long num;
|
||||||
|
|
||||||
if (varname == NULL)
|
if (varname == NULL)
|
||||||
return TRUE;
|
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);
|
d = vec_get(varname);
|
||||||
if (d == NULL)
|
if (d == NULL)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue