Changeset 32529 in project


Ignore:
Timestamp:
07/02/15 21:28:44 (5 years ago)
Author:
sjamaan
Message:

Summary: numbers: Fix double-C_fix() wrap in bitwise-and which occasionally caused invalid results.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/numbers/trunk/numbers-c.c

    r32524 r32529  
    27552755    /* Allow negative 1-bits to propagate */
    27562756    if (C_bignum_negativep(x) || C_bignum_negativep(y))
    2757       size = C_fix(nmax(C_bignum_size(x), C_bignum_size(y)) + 1);
     2757      size = nmax(C_bignum_size(x), C_bignum_size(y)) + 1;
    27582758    else
    2759       size = C_fix(nmin(C_bignum_size(x), C_bignum_size(y)));
     2759      size = nmin(C_bignum_size(x), C_bignum_size(y));
    27602760
    27612761    ka = C_alloc(C_SIZEOF_CLOSURE(4)); /* Why faster than static alloc? */
Note: See TracChangeset for help on using the changeset viewer.