Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
squash: fix return statements
  • Loading branch information
danbev committed Mar 9, 2018
commit 4fca5f78e3aef3eab869661c6e500dd2bdcb2227
6 changes: 2 additions & 4 deletions src/aliased_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ class AliasedBuffer {
}

inline Reference& operator+=(const Reference& val) {
this->operator+=(static_cast<NativeT>(val));
return *this;
return *this->operator+=(static_cast<NativeT>(val));
}

template <typename T>
Expand All @@ -161,8 +160,7 @@ class AliasedBuffer {
}

inline Reference& operator-=(const Reference& val) {
this->operator-=(static_cast<NativeT>(val));
return *this;
return *this->operator-=(static_cast<NativeT>(val));
}

private:
Expand Down