summary refs log tree commit diff stats
path: root/lib/pure/os.nim
diff options
context:
space:
mode:
authorJacek Sieka <arnetheduck@gmail.com>2017-04-13 05:10:54 +0800
committerAndreas Rumpf <rumpf_a@web.de>2017-04-12 23:10:54 +0200
commitce86b4ad78aae11f62c50e4f46e8ab2a124356b4 (patch)
tree2b3dfa6ef21907689d60dbf6f74041e1ce389546 /lib/pure/os.nim
parente512358bc96b7be58bf4f2d5a2c5de75f119138a (diff)
downloadNim-ce86b4ad78aae11f62c50e4f46e8ab2a124356b4.tar.gz
Posix from detect (#5697)
* refactor posix.nim
* types move to separate files for platform-specifc and generic
("other')
* consts move to separate files that get autogenerated by detect.nim
* proc's stay where they are for now, though in a second stage might
move as well
* fix missing when
Diffstat (limited to 'lib/pure/os.nim')
-rw-r--r--lib/pure/os.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index 82acb2a59..98b6aa309 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -1716,7 +1716,7 @@ template rawToFormalFileInfo(rawInfo, path, formalInfo): untyped =
         formalInfo.permissions.incl(formalMode)
     formalInfo.id = (rawInfo.st_dev, rawInfo.st_ino)
     formalInfo.size = rawInfo.st_size
-    formalInfo.linkCount = rawInfo.st_Nlink
+    formalInfo.linkCount = rawInfo.st_Nlink.BiggestInt
     formalInfo.lastAccessTime = rawInfo.st_atime
     formalInfo.lastWriteTime = rawInfo.st_mtime
     formalInfo.creationTime = rawInfo.st_ctime