Skip to content

Commit

Permalink
sync: fix compilation of bench `many_writers_and_receivers_on_1_chann…
Browse files Browse the repository at this point in the history
…el.v` (#19956)
  • Loading branch information
ttytm committed Nov 21, 2023
1 parent be8e911 commit db1cdba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/sync/bench/many_writers_and_receivers_on_1_channel.v
Expand Up @@ -48,7 +48,7 @@ fn do_rec(ch chan int, id int, mut ctx Context) {
n_iters := ctx.n_iters
base := id * n_iters * ctx.n_writers
for {
for ch.try_pop(tmp) == .success {
for ch.try_pop(mut tmp) == .success {
ctx.pops[base + i] = Event{
is_set: true
id: id
Expand Down

0 comments on commit db1cdba

Please sign in to comment.