Browse Source

Fix a bug from previous commit: min -> MIN

pre-master-46
Holger Vogt 4 years ago
parent
commit
62f326b9d0
  1. 2
      src/frontend/plotting/plotcurv.c

2
src/frontend/plotting/plotcurv.c

@ -139,7 +139,7 @@ ft_graf(struct dvec *v, struct dvec *xs, bool nostart)
int slength = xs->v_length;
if (slength != vlength)
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] :
realpart(xs->v_compdata[i]);
dy = isreal(v) ? v->v_realdata[i] :

Loading…
Cancel
Save