git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52048 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -23,8 +23,8 @@
#include <grass/bitmap.h>
-#define BM_col_to_byte(x) ((x)/8)
-#define BM_col_to_bit(x) ((x)%8)
+#define BM_col_to_byte(x) ((x) >> 3) /* x / 8 */
+#define BM_col_to_bit(x) ((x) & 7) /* x % 8 */
static int depth;