vodz noticed we need to cast things back to an unsigned long

or the syscall will not get the proper arguments.
This commit is contained in:
Eric Andersen 2003-12-19 10:34:36 +00:00
parent 850b05fbde
commit 07d2f4052f

View File

@ -870,8 +870,8 @@ static fdisk_loff_t my_llseek (unsigned int f_d, fdisk_loff_t offset,
fdisk_loff_t result; fdisk_loff_t result;
int retval; int retval;
retval = syscall(__NR__llseek, f_d, ((unsigned long long) offset) >> 32, retval = syscall(__NR__llseek, f_d, (unsigned long)(((unsigned long long) offset) >> 32),
((unsigned long long) offset) & 0xffffffff, (unsigned long)(((unsigned long long) offset) & 0xffffffff),
&result, origin); &result, origin);
return (retval == -1 ? (fdisk_loff_t) retval : result); return (retval == -1 ? (fdisk_loff_t) retval : result);
} }