VecTcl icon indicating copy to clipboard operation
VecTcl copied to clipboard

Typo in NumArrayGreaterEqual operator

Open ebcfr opened this issue 4 months ago • 1 comments

Hello,

I just found a typo in generic/vectcl.c line 2261

#define CMD NumArrayGreaterEqual
#define OPINT *result = (op1>=op2);
#define OPDBL *result = (op1<=op2);       <--
#define DBLRES NaWideInt
#include "binop.h"

It should be

#define OPDBL *result = (op1>=op2);

Test code:

package require vectcl
namespace import vectcl::*

vexpr {
  t=linspace(-5,5,11)
  y=(t>=0)
  puts(t)
  puts(y)
}

Regards,

Eric

ebcfr avatar Oct 04 '25 14:10 ebcfr