use size_t for indexes

protect against incorrect copies in debug mode
This commit is contained in:
Andrew Kelley
2016-09-15 14:05:15 -04:00
parent 4c0259b107
commit 3239b3cb69
27 changed files with 556 additions and 532 deletions

View File

@@ -43,7 +43,7 @@ void bignum_init_signed(BigNum *dest, int64_t x) {
}
void bignum_init_bignum(BigNum *dest, BigNum *src) {
memcpy(dest, src, sizeof(BigNum));
safe_memcpy(dest, src, 1);
}
bool bignum_fits_in_bits(BigNum *bn, int bit_count, bool is_signed) {