Skip to content

Commit 0d0d4aa

Browse files
committed
add casts to fix compilation issues
1 parent f08a16e commit 0d0d4aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/filesys/fs9p/fs9p_internal.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ static off_t v_lseek(vfs_file_t *fil, off_t offset, int whence)
806806
fs9_file *f = fil->vfsdata;
807807
long long tmp;
808808
if (!f) {
809-
return _seterror(EBADF);
809+
return (long long)_seterror(EBADF);
810810
}
811811
#ifdef _DEBUG_9P
812812
__builtin_printf("v_lseek(%d, %d) start=%d ", (long)offset, whence, f->offlo);
@@ -824,7 +824,7 @@ static off_t v_lseek(vfs_file_t *fil, off_t offset, int whence)
824824
struct stat stbuf;
825825
int r = fs_fstat(f, &stbuf);
826826
if (r < 0) {
827-
return _seterror(EINVAL);
827+
return (long long)_seterror(EINVAL);
828828
}
829829
tmp = stbuf.st_size - offset;
830830
f->offlo = tmp;

0 commit comments

Comments
 (0)