Use CLong, not CInt, for mp_bitcnt_t value; fixes #5965
[packages/integer-gmp.git] / cbits / gmp-wrappers.cmm
index 145e6de..9ea19c1 100644 (file)
@@ -269,7 +269,7 @@ name                                                                    \
 {                                                                       \
   CInt s1;                                                              \
   W_ d1;                                                                \
-  CInt ul;                                                              \
+  CLong ul;                                                             \
   W_ mp_tmp;                                                            \
   W_ mp_result;                                                         \
                                                                         \
@@ -280,7 +280,7 @@ name                                                                    \
                                                                         \
   s1 = W_TO_INT(R1);                                                    \
   d1 = R2;                                                              \
-  ul = W_TO_INT(R3);                                                    \
+  ul = W_TO_LONG(R3);                                                   \
                                                                         \
   mp_tmp     = Sp - 1 * SIZEOF_MP_INT;                                  \
   mp_result  = Sp - 2 * SIZEOF_MP_INT;                                  \