Skip to content

Commit

Permalink
Fix 'operator ==' swig warning (#1923)
Browse files Browse the repository at this point in the history
Fixes
> amici/include/amici/edata.h:118: Warning 503: Can't wrap 'operator ==' unless renamed to a valid identifier.
  • Loading branch information
dweindl authored Jan 11, 2023
1 parent c850d00 commit 8f6c380
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions swig/amici.i
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ nonstandard type conversions.
}
}

// Warning 503: Can't wrap 'operator ==' unless renamed to a valid identifier.
%rename("__eq__") operator ==;

%{
#define SWIG_FILE_WITH_INIT
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
Expand Down

0 comments on commit 8f6c380

Please sign in to comment.