Skip to content

Commit 59cea73

Browse files
committed
Compile Warning
1 parent 46bd1f5 commit 59cea73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FileSystems/FileSystemMemory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class FileSystemMemory : public FileSystem {
272272
break;
273273
case SEEK_END:
274274
long pos = p_memory->size - offset;
275-
if (p_memory->current_pos < 0) {
275+
if (pos < 0) {
276276
p_memory->current_pos = 0;
277277
offset = offset + p_memory->current_pos;
278278
} else {

0 commit comments

Comments
 (0)