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

Commit d19ba06

Browse files
authored
Merge pull request #1858 from WalterBright/snan
core.atomic: avoid comparing nan bit patterns merged-on-behalf-of: Iain Buclaw <ibuclaw@gdcproject.org>
2 parents 68cce53 + cdf7012 commit d19ba06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/atomic.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,8 +1304,8 @@ version( unittest )
13041304
}
13051305
body
13061306
{
1307-
T base;
1308-
shared(T) atom;
1307+
T base = cast(T)null;
1308+
shared(T) atom = cast(shared(T))null;
13091309

13101310
assert( base !is val, T.stringof );
13111311
assert( atom is base, T.stringof );

0 commit comments

Comments
 (0)