Skip to content

Commit d3cd2cf

Browse files
committed
Fix phobos.sys.meta example which is broken on 32-bit systems.
1 parent 84e8b13 commit d3cd2cf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: phobos/sys/meta.d

+2-3
Original file line numberDiff line numberDiff line change
@@ -435,14 +435,13 @@ private template AppendIfUnique(alias Cmp, Args...)
435435
///
436436
@safe unittest
437437
{
438-
alias Types = AliasSeq!(int, uint, long, string, short, int*, ushort);
438+
alias Types = AliasSeq!(int, uint, long, short, int*, ushort);
439439

440440
template sameSize(T)
441441
{
442442
enum sameSize(U) = T.sizeof == U.sizeof;
443443
}
444-
static assert(is(Unique!(sameSize, Types) ==
445-
AliasSeq!(int, long, string, short)));
444+
static assert(is(Unique!(sameSize, Types) == AliasSeq!(int, long, short)));
446445

447446
// The predicate must be partially instantiable.
448447
enum sameSize_fails(T, U) = T.sizeof == U.sizeof;

0 commit comments

Comments
 (0)