Fix a bug from previous commit: min -> MIN
This commit is contained in:
parent
0eb272243f
commit
62f326b9d0
|
|
@ -139,7 +139,7 @@ ft_graf(struct dvec *v, struct dvec *xs, bool nostart)
|
||||||
int slength = xs->v_length;
|
int slength = xs->v_length;
|
||||||
if (slength != vlength)
|
if (slength != vlength)
|
||||||
fprintf(stderr, "Warning: length of vector %s and its scale do not match, plot may be truncated!\n", v->v_name);
|
fprintf(stderr, "Warning: length of vector %s and its scale do not match, plot may be truncated!\n", v->v_name);
|
||||||
for (i = 0, j = min(vlength, slength); i < j; i++) {
|
for (i = 0, j = MIN(vlength, slength); i < j; i++) {
|
||||||
dx = isreal(xs) ? xs->v_realdata[i] :
|
dx = isreal(xs) ? xs->v_realdata[i] :
|
||||||
realpart(xs->v_compdata[i]);
|
realpart(xs->v_compdata[i]);
|
||||||
dy = isreal(v) ? v->v_realdata[i] :
|
dy = isreal(v) ? v->v_realdata[i] :
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue