Skip to content

Commit 1a4191f

Browse files
author
Omar Marzouk
committed
Bug Fix
1 parent 85231f7 commit 1a4191f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_io/core/filesystems/dfs/dfs_filesystem.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void Cleanup(TF_RandomAccessFile* file) {
5555
int64_t Read(const TF_RandomAccessFile* file, uint64_t offset, size_t n,
5656
char* ret, TF_Status* status) {
5757
auto dfs_file = static_cast<DFSRandomAccessFile*>(file->plugin_file);
58-
if (offset > dfs_file->file_size) {
58+
if (offset >= dfs_file->file_size) {
5959
TF_SetStatus(status, TF_OUT_OF_RANGE, "");
6060
return -1;
6161
}

0 commit comments

Comments
 (0)