Skip to content

Commit

Permalink
MINOR: [C++] Add missing parenthesis in error message (apache#40201)
Browse files Browse the repository at this point in the history
Followup to apache#40176

Authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
  • Loading branch information
pitrou authored Feb 22, 2024
1 parent 8e53451 commit 280bc11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/io/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ class MemoryMappedFile::MemoryMap
if (static_cast<int64_t>(static_cast<size_t>(mmap_length)) != mmap_length) {
return Status::CapacityError("Requested memory map length ", mmap_length,
" does not fit in a C size_t "
"(are you using a 32-bit build of Arrow?");
"(are you using a 32-bit build of Arrow?)");
}

void* result = mmap(nullptr, static_cast<size_t>(mmap_length), prot_flags_, map_mode_,
Expand Down

0 comments on commit 280bc11

Please sign in to comment.