Fix various assumptions about mpw sizes.
[u/mdw/catacomb] / mpx.h
diff --git a/mpx.h b/mpx.h
index f79cffd..15253ed 100644 (file)
--- a/mpx.h
+++ b/mpx.h
@@ -89,7 +89,7 @@
   else {                                                               \
     unsigned long _b = MPW_BITS * (_vl - _v - 1) + 1;                  \
     mpw _w = _vl[-1];                                                  \
-    unsigned _k = MPW_BITS / 2;                                                \
+    unsigned _k = MPW_P2;                                              \
     while (_k) {                                                       \
       if (_w >> _k) {                                                  \
        _w >>= _k;                                                      \