Skip to content

Commit

Permalink
ARROW-85. Corrected another format issue by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Zheng committed Apr 5, 2016
1 parent 0ddcd01 commit b83f989
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cpp/src/arrow/util/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ class Buffer : public std::enable_shared_from_this<Buffer> {
// Return true if both buffers are the same size and contain the same bytes
// up to the number of compared bytes
bool Equals(const Buffer& other, int64_t nbytes) const {
return this == &other || (size_ >= nbytes && other.size_ >= nbytes &&
(data_ == other.data_ || !memcmp(data_, other.data_, nbytes)));
return this == &other ||
(size_ >= nbytes && other.size_ >= nbytes &&
(data_ == other.data_ || !memcmp(data_, other.data_, nbytes)));
}

bool Equals(const Buffer& other) const {
return this == &other ||
(size_ == other.size_ && (data_ == other.data_ ||
!memcmp(data_, other.data_, size_)));
(size_ == other.size_ &&
(data_ == other.data_ || !memcmp(data_, other.data_, size_)));
}

const uint8_t* data() const { return data_; }
Expand Down

0 comments on commit b83f989

Please sign in to comment.