/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#endif
checkUnixError(bytes, "pwrite() failed");
- DCHECK_EQ(bytes, totalLength);
+ DCHECK_EQ(size_t(bytes), totalLength);
}
RecordIOReader::RecordIOReader(File file, uint32_t fileId)
range_.clear();
} else {
recordAndPos_.second = pos;
- range_.advance(pos);
+ range_.advance(size_t(pos));
advanceToValid();
}
}
return hash::SpookyHashV2::Hash64(range.data(), range.size(), kHashSeed);
}
-} // namespace
+} // namespace
size_t prependHeader(std::unique_ptr<IOBuf>& buf, uint32_t fileId) {
if (fileId == 0) {
return {0, {}};
}
-} // namespace
+} // namespace recordio_helpers
-} // namespaces
+} // namespace folly