Skip to content

Typo in NumArrayGreaterEqual operator #13

@ebcfr

Description

@ebcfr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions