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

Commit 97d25f2

Browse files
authored
Merge pull request #2072 from wilzbach/deprecate-rwm-shared
Fix error due to deprecated rwm for shared variables merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2 parents f5c8d3b + 42dbadf commit 97d25f2

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)