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

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
andralex committed Jul 25, 2020
1 parent 564f676 commit c0cb533
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/object.d
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,9 @@ class TypeInfo
return hashOf(this.toString());
}

override int opCmp(Object o)
override int opCmp(Object rhs)
{
assert(this !is o); // __cmp takes care of that
TypeInfo ti = cast(TypeInfo)o;
auto ti = cast(TypeInfo) rhs;
if (ti is null)
return 1;
return __cmp(this.toString(), ti.toString());
Expand Down

0 comments on commit c0cb533

Please sign in to comment.