Skip to content

Commit

Permalink
Add fix for NeIn
Browse files Browse the repository at this point in the history
  • Loading branch information
Ttimofeyka committed Feb 11, 2025
1 parent 9247361 commit 7a77a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/nodes/NodeBinary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ RaveValue NodeBinary::generate() {

if(overload.first != "" && overload.second != "") {
NodeStruct* _struct = AST::structTable[overload.first];
NodeFunc* _operator = _struct->operators[this->op][overload.second];
NodeFunc* _operator = _struct->operators[TokType::In][overload.second];

if(_operator == nullptr) generator->error("operator not found!", loc);
else {
Expand Down

0 comments on commit 7a77a84

Please sign in to comment.