Skip to content

Commit

Permalink
patch for issue #1962
Browse files Browse the repository at this point in the history
ignoreMe was not reset to 0 in AssignAt

Probably other cases where !NULL is not properly handled will appear.
  • Loading branch information
GillesDuvert authored Jan 14, 2025
1 parent aa9693b commit 54b30b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arrayindexlistnoassoct.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ class ArrayIndexListOneNoAssocT: public ArrayIndexListT

void AssignAt( BaseGDL* var, BaseGDL* right)
{
if (ignoreMe) return; //there was a !NULL argument for indexlist (a[!NULL]=33)
if (ignoreMe) {ignoreMe=false; return;} //there was a !NULL argument for indexlist (a[!NULL]=33) //see also #1962
// scalar case
if( right->N_Elements() == 1 && //!var->IsAssoc() &&
ix->NIter( var->N_Elements()/*var->Size()*/) == 1)// && var->Type() != GDL_STRUCT)
Expand Down

0 comments on commit 54b30b9

Please sign in to comment.