Skip to content

Commit b5b1ca0

Browse files
committed
extmod/vfs_rom_file: Don't cast to ssize_t, it's already signed.
Signed-off-by: Damien George <damien@micropython.org>
1 parent e0b9c47 commit b5b1ca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extmod/vfs_rom_file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static mp_uint_t vfs_rom_file_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t
118118
self->file_offset = self->file_size + s->offset;
119119
}
120120
if (self->file_offset > self->file_size) {
121-
if ((ssize_t)s->offset < 0) {
121+
if (s->offset < 0) {
122122
// Seek to before the start of the file.
123123
*errcode = MP_EINVAL;
124124
return MP_STREAM_ERROR;

0 commit comments

Comments
 (0)