diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-12-17 14:22:58 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-12-17 14:22:58 +0100 |
commit | 9ac76b49c0f5f13b7f4095fc436aabbb7385be30 (patch) | |
tree | cf85db7680e3b3448195ad50eda0795831f70e56 /lib/system/sysio.nim | |
parent | b0134309292e41a9b29777b5bdd79f2a1278a03d (diff) | |
parent | 4fcb6c02659997914d0a78a86e9ad2642edcc07a (diff) | |
download | Nim-9ac76b49c0f5f13b7f4095fc436aabbb7385be30.tar.gz |
Merge branch 'devel' of github.com:nim-lang/Nim into devel
Diffstat (limited to 'lib/system/sysio.nim')
-rw-r--r-- | lib/system/sysio.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index 5c10392f1..29c5777cc 100644 --- a/lib/system/sysio.nim +++ b/lib/system/sysio.nim @@ -336,8 +336,8 @@ proc open(f: var File, filehandle: FileHandle, mode: FileMode): bool = f = c_fdopen(filehandle, FormatOpen[mode]) result = f != nil -proc setFilePos(f: File, pos: int64) = - if c_fseek(f, clong(pos), 0) != 0: +proc setFilePos(f: File, pos: int64, relativeTo: FileSeekPos = fspSet) = + if c_fseek(f, clong(pos), cint(relativeTo)) != 0: raiseEIO("cannot set file position") proc getFilePos(f: File): int64 = |