[mapserver-commits] r7536 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Sun Apr 27 01:58:41 EDT 2008
Author: pramsey
Date: 2008-04-27 01:58:41 -0400 (Sun, 27 Apr 2008)
New Revision: 7536
Modified:
trunk/mapserver/mapbits.c
Log:
Remove extraneous bit-shift in getNextBit that might be messing up windows builds.
Modified: trunk/mapserver/mapbits.c
===================================================================
--- trunk/mapserver/mapbits.c 2008-04-26 23:41:46 UTC (rev 7535)
+++ trunk/mapserver/mapbits.c 2008-04-27 05:58:41 UTC (rev 7536)
@@ -61,16 +61,16 @@
**
*/
int msGetNextBit(char *array, int index, int size) {
+
char *ptr;
- int i;
+ int i = 0;
- i = 0;
ptr = array;
ptr += index / CHAR_BIT;
/* Check the starting byte for set bits, if necessary. */
- if(*ptr & (0xff << (index % CHAR_BIT))) {
+ if(*ptr) {
/* a bit in this byte is set, figure out which one */
for( i = index; i < index + CHAR_BIT - (index % CHAR_BIT); i++ ) {
if ( msGetBit( array, i ) )
More information about the mapserver-commits
mailing list