diff options
author | Bung <crc32@qq.com> | 2022-12-16 15:01:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-16 08:01:15 +0100 |
commit | a9bd78d579168ba50f42d3bc418cd7de70a226f9 (patch) | |
tree | 0d86451a7c502ca87855107d5928b460823a8c11 /tests/parallel | |
parent | 8a3b76b28733a87e5cffa3f4b7b99d76f13ee2ba (diff) | |
download | Nim-a9bd78d579168ba50f42d3bc418cd7de70a226f9.tar.gz |
fix #12122 (#21096)
Diffstat (limited to 'tests/parallel')
-rw-r--r-- | tests/parallel/tguard1.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/parallel/tguard1.nim b/tests/parallel/tguard1.nim index b1eb7e7c5..f4c92319b 100644 --- a/tests/parallel/tguard1.nim +++ b/tests/parallel/tguard1.nim @@ -5,7 +5,7 @@ output: "90" when false: template lock(a, b: ptr Lock; body: stmt) = - if cast[ByteAddress](a) < cast[ByteAddress](b): + if cast[int](a) < cast[int](b): pthread_mutex_lock(a) pthread_mutex_lock(b) else: |