express: Fix compile error with GCC

This commit is contained in:
rdb 2022-12-19 16:38:19 +01:00
parent 896346b99f
commit 0911040999

View File

@ -518,8 +518,8 @@ template<class Element>
INLINE PointerToArray<Element> Extension<PointerToArray<Element> >:: INLINE PointerToArray<Element> Extension<PointerToArray<Element> >::
__deepcopy__(PyObject *memo) const { __deepcopy__(PyObject *memo) const {
PointerToArray<Element> copy; PointerToArray<Element> copy;
if (!_this->is_null()) { if (!this->_this->is_null()) {
copy.v() = _this->v(); copy.v() = this->_this->v();
} }
return copy; return copy;
} }
@ -725,8 +725,8 @@ template<class Element>
INLINE ConstPointerToArray<Element> Extension<ConstPointerToArray<Element> >:: INLINE ConstPointerToArray<Element> Extension<ConstPointerToArray<Element> >::
__deepcopy__(PyObject *memo) const { __deepcopy__(PyObject *memo) const {
PointerToArray<Element> copy; PointerToArray<Element> copy;
if (!_this->is_null()) { if (!this->_this->is_null()) {
copy.v() = _this->v(); copy.v() = this->_this->v();
} }
return copy; return copy;
} }