Skip to content

Commit 7b5289a

Browse files
authored
Correction of “Tnfds” type error (#23045)
The types in Nim don't match the actual types in the header files, this can lead to bugs in some cases.
1 parent 3a0d09c commit 7b5289a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/posix/posix_other.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,10 +606,10 @@ when not defined(lwip):
606606

607607
when defined(zephyr):
608608
type
609-
Tnfds* = distinct cint
609+
Tnfds* = distinct culong
610610
else:
611611
type
612-
Tnfds* {.importc: "nfds_t", header: "<poll.h>".} = cint
612+
Tnfds* {.importc: "nfds_t", header: "<poll.h>".} = culong
613613

614614
var
615615
errno* {.importc, header: "<errno.h>".}: cint ## error variable

0 commit comments

Comments
 (0)