Skip to content

Commit

Permalink
Update persistent_memory_malloc.h
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc authored Feb 11, 2021
1 parent 265d40c commit b1d7937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cc/src/core/persistent_memory_malloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class PersistentMemoryMalloc {
if(log_size % kPageSize != 0) {
throw std::invalid_argument{ "Log size must be a multiple of 32 MB" };
}
if(log_size % kPageSize > UINT32_MAX) {
if(log_size / kPageSize > UINT32_MAX) {
throw std::invalid_argument{ "Log size must be <= 128 PB" };
}
buffer_size_ = static_cast<uint32_t>(log_size / kPageSize);
Expand Down

0 comments on commit b1d7937

Please sign in to comment.