Commit 462d3c8e17eb4c45867cb6ead98dd9c1e70b3aec
1 parent
c813cf25
Change Python GSkyMap::operator() return type to a value instead of a reference.
Otherwise we get a pointer to double which cannot be used.
Showing
1 changed file
with
2 additions
and
2 deletions
pyext/GSkyMap.i
| @@ -138,8 +138,8 @@ public: | @@ -138,8 +138,8 @@ public: | ||
| 138 | GSkyMap operator-(const GSkyMap& map) const; | 138 | GSkyMap operator-(const GSkyMap& map) const; |
| 139 | GSkyMap operator*(const GSkyMap& map) const; | 139 | GSkyMap operator*(const GSkyMap& map) const; |
| 140 | GSkyMap operator/(const GSkyMap& map) const; | 140 | GSkyMap operator/(const GSkyMap& map) const; |
| 141 | - double& operator()(const int& index, const int& map = 0); | ||
| 142 | - double& operator()(const GSkyPixel& pixel, const int& map = 0); | 141 | + double operator()(const int& index, const int& map = 0); |
| 142 | + double operator()(const GSkyPixel& pixel, const int& map = 0); | ||
| 143 | double operator()(const GSkyDir& dir, const int& map = 0) const; | 143 | double operator()(const GSkyDir& dir, const int& map = 0) const; |
| 144 | 144 | ||
| 145 | // Methods | 145 | // Methods |