Skip to content

Commit

Permalink
fixes Thread initializer for ARC/ORC on Macos (nim-lang#20368)
Browse files Browse the repository at this point in the history
* fixes Thread initializer for ARC/ORC

* another try

* fix

* use int
  • Loading branch information
ringabout authored and capocasa committed Mar 31, 2023
1 parent e2142e5 commit d32b908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/system/threadlocalstorage.nim
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ else:
header: "<pthread.h>".} = cint
else:
type
SysThread* {.importc: "pthread_t", header: "<sys/types.h>".} = object
SysThread* {.importc: "pthread_t", header: "<sys/types.h>".} = int
Pthread_attr {.importc: "pthread_attr_t",
header: "<sys/types.h>".} = object
ThreadVarSlot {.importc: "pthread_key_t",
Expand Down
2 changes: 1 addition & 1 deletion tests/generics/tthread_generic.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
discard """
cmd: "nim $target --hints:on --threads:on $options $file"
matrix: "--mm:refc; --mm:orc"
action: compile
"""

Expand Down

0 comments on commit d32b908

Please sign in to comment.