#endif
}
-int File::seek(int off, SeekType st)
+unsigned File::seek(int off, SeekType st)
{
check_access(M_NONE);
if(ret==INVALID_SET_FILE_POINTER)
throw system_error("SetFilePointer");
#else
- int ret = lseek(handle, off, type);
- if(ret==-1)
+ off_t ret = lseek(handle, off, type);
+ if(ret==(off_t)-1)
throw system_error("lseek");
#endif
return ret;
}
-int File::tell() const
+unsigned File::tell() const
{
check_access(M_NONE);
if(ret==INVALID_SET_FILE_POINTER)
throw system_error("SetFilePointer");
#else
- int ret = lseek(handle, 0, SEEK_CUR);
- if(ret==-1)
+ off_t ret = lseek(handle, 0, SEEK_CUR);
+ if(ret==(off_t)-1)
throw system_error("lseek");
#endif