1. 29 Feb, 2016 2 commits
    • Nikolaus Rath's avatar
      __Pyx_PyInt_TrueDivideObjC: switch comparison order · 9c100bce
      Nikolaus Rath authored
      The current order results in compiler warnings on 32 bit machines, e.g.
      
      src/llfuse.c: In function '__Pyx_PyInt_TrueDivideObjC':
      src/llfuse.c:43980:17: warning: left shift count >= width of type
                       if (8 * sizeof(long) <= 53 || (__Pyx_sst_abs(size) <= 52 / PyLong_SHIFT) || likely(labs(a) <= (1L << 53))) {
      
      Switching the order so that the left shift is closer to the sizeof test
      avoids the warning, presumably because it makes it easier for the
      compiler to see that the left shift is only executed on 64 bit.
      
      Thanks to Christian Neukirchen for doing most of the work!
      9c100bce
    • Nikolaus Rath's avatar
      FROM_PY_FUNCTION: Cast to sdigit after unary minus, not before · 6e8b60bb
      Nikolaus Rath authored
      The current cast isn't doing anything, because the unary minus implicitly
      upcasts to int again, resulting in warnings about potentially value altering
      conversions on 32 bit systems.
      
      Fixes issue #877.
      6e8b60bb
  2. 12 Sep, 2015 14 commits
  3. 11 Sep, 2015 8 commits
  4. 07 Sep, 2015 1 commit
  5. 06 Sep, 2015 5 commits
  6. 05 Sep, 2015 10 commits