[cig-commits] commit: Fix a bug where IndexSet's AddAll did not actually add everything

Mercurial hg at geodynamics.org
Tue Dec 22 15:21:42 PST 2009


changeset:   692:596cb32a1658
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Tue Dec 22 15:18:01 2009 -0800
files:       Base/Container/src/IndexSet.c
description:
Fix a bug where IndexSet's AddAll did not actually add everything


diff -r dad62f1344f1 -r 596cb32a1658 Base/Container/src/IndexSet.c
--- a/Base/Container/src/IndexSet.c	Sun Nov 22 23:12:51 2009 -0800
+++ b/Base/Container/src/IndexSet.c	Tue Dec 22 15:18:01 2009 -0800
@@ -354,7 +354,7 @@ void IndexSet_AddAll( void* indexSet )
 	Index		i;
 	
 	for( i = 0; i < self->_containerSize; i++)
-		self->_container[i] |= 0xF;
+		self->_container[i] |= -1;
 
 	self->membersCount = self->size;
 }



More information about the CIG-COMMITS mailing list