Skip to content

Commit 560f218

Browse files
committed
fix #102
1 parent ac96481 commit 560f218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macro_impl.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ function _maybe_handle_atonlyone_blocks!(args)
247247
for i in idcs
248248
body = args[i].args[3]
249249
@gensym onlyone
250-
init_onlyone_ex = :($(onlyone) = $(OnlyOneRegion()))
250+
init_onlyone_ex = :($(onlyone) = Tools.OnlyOneRegion())
251251
push!(setup_onlyone_blocks.args, init_onlyone_ex)
252252
args[i] = quote
253253
Tools.try_enter!($(onlyone)) do
@@ -267,7 +267,7 @@ function _maybe_handle_atonebyone_blocks!(args)
267267
for i in idcs
268268
body = args[i].args[3]
269269
@gensym onebyone
270-
init_lock_ex = :($(onebyone) = $(Base.ReentrantLock()))
270+
init_lock_ex = :($(onebyone) = Base.ReentrantLock())
271271
push!(setup_onebyone_blocks.args, init_lock_ex)
272272
args[i] = quote
273273
$(esc(:lock))($(onebyone)) do

0 commit comments

Comments
 (0)