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

Commit 74071a9

Browse files
committed
Fix bug revealed by undeaD unittests
1 parent f662007 commit 74071a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/util/typeinfo.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ if (T.sizeof == Base.sizeof && T.alignof == Base.alignof)
375375
}
376376

377377
static if (is(T == Base))
378-
static if (is(immutable T == immutable real) && T.mant_dig != 64) // exclude 80-bit X87
379-
// passed in SIMD register
378+
static if (__traits(isFloating, T) && T.mant_dig != 64)
379+
// FP types except 80-bit X87 are passed in SIMD register.
380380
override @property uint flags() const { return 2; }
381381
}
382382

0 commit comments

Comments
 (0)