if (!BN_div(&dv, &rem, &bn, &bn58, pctx))
throw bignum_error("EncodeBase58 : BN_div failed");
bn = dv;
- unsigned int c = rem.getulong();
+ unsigned int c = rem.getuint32();
str += pszBase58[c];
}
return false;
break;
}
- bnChar.setulong(p1 - pszBase58);
+ bnChar.setuint32(p1 - pszBase58);
if (!BN_mul(&bn, &bn, &bn58, pctx))
throw bignum_error("DecodeBase58 : BN_mul failed");
bn += bnChar;