/*
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2013-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
void dcheckIntegrity() {
// Tail start should always be less than tail end.
- DCHECK_LE(data_.cachedRange.first, data_.cachedRange.second);
+ DCHECK_LE(
+ (void*)data_.cachedRange.first, (void*)data_.cachedRange.second);
DCHECK(
data_.cachedRange.first != nullptr ||
data_.cachedRange.second == nullptr);
*/
void postallocate(uint64_t n) {
dcheckCacheIntegrity();
- DCHECK_LE(cachePtr_->cachedRange.first + n, cachePtr_->cachedRange.second);
+ DCHECK_LE(
+ (void*)(cachePtr_->cachedRange.first + n),
+ (void*)cachePtr_->cachedRange.second);
cachePtr_->cachedRange.first += n;
}
void dcheckCacheIntegrity() const {
// Tail start should always be less than tail end.
- DCHECK_LE(tailStart_, cachePtr_->cachedRange.first);
- DCHECK_LE(cachePtr_->cachedRange.first, cachePtr_->cachedRange.second);
+ DCHECK_LE((void*)tailStart_, (void*)cachePtr_->cachedRange.first);
+ DCHECK_LE(
+ (void*)cachePtr_->cachedRange.first,
+ (void*)cachePtr_->cachedRange.second);
DCHECK(
cachePtr_->cachedRange.first != nullptr ||
cachePtr_->cachedRange.second == nullptr);
if (tailStart_ != cachePtr_->cachedRange.first) {
auto buf = head_->prev();
DCHECK_EQ(
- buf->writableTail() + buf->tailroom(), cachePtr_->cachedRange.second);
+ (void*)(buf->writableTail() + buf->tailroom()),
+ (void*)cachePtr_->cachedRange.second);
auto len = cachePtr_->cachedRange.first - tailStart_;
buf->append(len);
chainLength_ += len;