pitrou commented on code in PR #47629:
URL: https://github.com/apache/arrow/pull/47629#discussion_r2372738045


##########
cpp/src/arrow/util/io_util.cc:
##########
@@ -1070,11 +1070,10 @@ Result<FileDescriptor> FileOpenReadable(const 
PlatformFilename& file_name) {
   }
   fd = FileDescriptor(ret);
 #else
-  int ret = open(file_name.ToNative().c_str(), O_RDONLY);
-  if (ret < 0) {
-    return IOErrorFromErrno(errno, "Failed to open local file '", 
file_name.ToString(),
-                            "'");
-  }
+  int64_t ret;

Review Comment:
   There is no reason to make this an `int64_t`, which not keep it `int`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to