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

Commit c0cb533

Browse files
committed
Review
1 parent 564f676 commit c0cb533

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/object.d

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,9 @@ class TypeInfo
326326
return hashOf(this.toString());
327327
}
328328

329-
override int opCmp(Object o)
329+
override int opCmp(Object rhs)
330330
{
331-
assert(this !is o); // __cmp takes care of that
332-
TypeInfo ti = cast(TypeInfo)o;
331+
auto ti = cast(TypeInfo) rhs;
333332
if (ti is null)
334333
return 1;
335334
return __cmp(this.toString(), ti.toString());

0 commit comments

Comments
 (0)