Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 42dbadf

Browse files
committed
Fix error due to deprecated rwm for shared variables
1 parent 594e3c6 commit 42dbadf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/sync/mutex.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ unittest
318318
void useResource() shared @safe nothrow @nogc
319319
{
320320
mtx.lock_nothrow();
321-
cargo++;
321+
*(cast()&cargo) += 1;
322322
mtx.unlock_nothrow();
323323
}
324324
}

0 commit comments

Comments
 (0)