Changeset 1385 for trunk/psLib/src/collections/psBitSet.c
- Timestamp:
- Aug 4, 2004, 1:37:39 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/psBitSet.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/psBitSet.c
r1172 r1385 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-0 7-01 21:48:11$12 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2004-08-04 23:37:39 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 126 126 psError(__func__, " : Line %d - Null psBitSet for inBitSet argument", __LINE__); 127 127 return inBitSet; 128 } else if(bit < 0) { 129 psError(__func__, " : Line %d - Bit position too small: %d", __LINE__, bit); 130 return inBitSet; 131 } else if(bit > inBitSet->n*8-1) { 132 psError(__func__, " : Line %d - Bit position too large: %d", __LINE__, bit); 133 return inBitSet; 134 } 128 } else 129 if(bit < 0) { 130 psError(__func__, " : Line %d - Bit position too small: %d", __LINE__, bit); 131 return inBitSet; 132 } else 133 if(bit > inBitSet->n*8-1) { 134 psError(__func__, " : Line %d - Bit position too large: %d", __LINE__, bit); 135 return inBitSet; 136 } 135 137 136 138 // Variable byte is the byte in the array that contains the bit to be set … … 148 150 psError(__func__, " : Line %d - Null psBitSet for inBitSet argument", __LINE__); 149 151 return 0; 150 } else if(bit < 0) { 151 psError(__func__, " : Line %d - Bit position too small: %d", __LINE__, bit); 152 return 0; 153 } else if(bit > inBitSet->n*8-1) { 154 psError(__func__, " : Line %d - Bit position too large: %d", __LINE__, bit); 155 return 0; 156 } 152 } else 153 if(bit < 0) { 154 psError(__func__, " : Line %d - Bit position too small: %d", __LINE__, bit); 155 return 0; 156 } else 157 if(bit > inBitSet->n*8-1) { 158 psError(__func__, " : Line %d - Bit position too large: %d", __LINE__, bit); 159 return 0; 160 } 157 161 158 162 // Variable byte is the byte in the array that contains the bit to be tested
Note:
See TracChangeset
for help on using the changeset viewer.
