@@ -596,32 +596,6 @@ static if (__traits(hasMember, TypeInfo, "argTypes"))
596
596
t2 == typeid (real ));
597
597
}
598
598
599
- // All pointer types are represented by `TypeInfo_P`.
600
- // Please keep in sync with `TypeInfo_Pointer`.
601
- class TypeInfo_P : TypeInfoGeneric !(void*)
602
- {
603
- const : nothrow : pure : @trusted :
604
-
605
- override size_t getHash (scope const void * p)
606
- {
607
- size_t addr = cast (size_t ) * cast (const void ** )p;
608
- return addr ^ (addr >> 4 );
609
- }
610
-
611
- override @property uint flags() nothrow pure const { return 1 ; }
612
- }
613
-
614
- unittest
615
- {
616
- with (new TypeInfo_P )
617
- {
618
- int x;
619
- int * p = &x;
620
- assert (getHash(&p) != 0 );
621
- assert (flags == 1 );
622
- }
623
- }
624
-
625
599
// Arrays of all integrals.
626
600
class TypeInfo_Ab : TypeInfoArrayGeneric !bool {}
627
601
class TypeInfo_Ag : TypeInfoArrayGeneric !byte {}
@@ -642,7 +616,7 @@ class TypeInfo_Aw : TypeInfoArrayGeneric!dchar {}
642
616
class TypeInfo_Al : TypeInfoArrayGeneric !long {}
643
617
class TypeInfo_Am : TypeInfoArrayGeneric !ulong {}
644
618
645
- extern (C ) void [] _adSort(void [] a, TypeInfo ti);
619
+ private extern (C) void [] _adSort(void [] a, TypeInfo ti);
646
620
647
621
unittest
648
622
{
@@ -658,7 +632,7 @@ unittest
658
632
659
633
unittest
660
634
{
661
- // Issue 13073: original code uses int subtraction which is susceptible to
635
+ // https://issues.dlang.org/show_bug.cgi?id= 13073: original code uses int subtraction which is susceptible to
662
636
// integer overflow, causing the following case to fail.
663
637
int [] a = [int .max, int .max];
664
638
int [] b = [int .min, int .min];
0 commit comments