mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
add posix uint changes to changelog + fix Nlink, Dev on FreeBSD (#24088)
refs #24078, refs #24076 Since these changes are potentially breaking, add them to changelog, also add Nlink as mentioned in https://github.com/nim-lang/Nim/issues/24076#issuecomment-2337666555.
This commit is contained in:
@@ -6,3 +6,9 @@ when defined(macosx) or defined(freebsd) or defined(openbsd) or defined(netbsd):
|
||||
var y: uint32
|
||||
let myUid = geteuid()
|
||||
discard myUid == uid(y)
|
||||
proc dev(x: uint32): Dev = Dev(x)
|
||||
let myDev = 1.Dev
|
||||
discard myDev == dev(y)
|
||||
proc nlink(x: uint32): Nlink = Nlink(x)
|
||||
let myNlink = 1.Nlink
|
||||
discard myNlink == nlink(y)
|
||||
Reference in New Issue
Block a user