Revert "vm: fix bignum_to_fixnum_strict for BIGNUM_ZERO."

This reverts commit 0a66016c7db3c8c02af609d7c46411dc05a7b0dd.
db4
John Benediktsson 2014-06-08 16:32:35 -07:00
parent 14f425c57c
commit f0e878e3fa
1 changed files with 0 additions and 2 deletions

View File

@ -385,8 +385,6 @@ BIGNUM_TO_FOO(ulong_long, uint64_t, int64_t, uint64_t)
/* cannot allocate memory */
fixnum factor_vm::bignum_to_fixnum_strict(bignum* bignum_in) {
if (BIGNUM_ZERO_P(bignum_in))
return 0;
fixnum len = BIGNUM_LENGTH(bignum_in);
bignum_digit_type *digits = BIGNUM_START_PTR(bignum_in);
if ((len == 1 && digits[0] > fixnum_max) || (len > 1)) {