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

Commit cdf7012

Browse files
committed
core.atomic: avoid comparing nan bit patterns
1 parent 6dd8d62 commit cdf7012

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)