ecere/com/Containers: Fixed comparison of 2 null containers
authorJerome St-Louis <jerome@ecere.com>
Wed, 6 Jul 2016 09:19:49 +0000 (05:19 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 16 Jul 2016 22:17:47 +0000 (18:17 -0400)
ecere/src/com/containers/Container.ec

index 483c362..4963e6c 100644 (file)
@@ -156,6 +156,7 @@ public:
 
       if(this && !b) return 1;
       if(b && !this) return -1;
+      if(!b && !this) return 0;
       if(GetCount() > b.GetCount()) return 1;
       if(GetCount() < b.GetCount()) return -1;