Changeset fc34c4 in git


Ignore:
Timestamp:
Nov 21, 2013, 8:35:14 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
40971d53362e3fb612b5ee52d46dc9023f52e8cd
Parents:
a2f79c054ca40c801a773fd34d33c63c5b21f130e8cd086d3ec855c9abedde655e4bea26079de829
Message:
Merge pull request #428 from jankoboehm/spielwiese

Fix for Cygwin: cast to pointer from integer of different size
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/modulop.h

    ra2f79c rfc34c4  
    125125                       r->ch-(long)b+(long)a : (long)a-(long)b);
    126126}
     127
     128static inline number npNegM(number a, const coeffs r)
     129{
     130  return (number)((long)(r->ch)-(long)(a));
     131}
     132
    127133#else
    128134static inline number npAddM(number a, number b, const coeffs r)
     
    147153   return (number)res;
    148154}
     155
     156
     157static inline number npNegM(number b, const coeffs r)
     158{
     159   long res =  - (long)b;
     160#if SIZEOF_LONG == 8
     161   res += (res >> 63) & r->ch;
     162#else
     163   res += (res >> 31) & r->ch;
     164#endif
     165   return (number)res;
     166}
     167
    149168#endif
    150169
     
    160179
    161180
    162 #define npNegM(A,r)      (number)((long)r->ch-(long)(A))
     181
     182
     183
    163184#define npEqualM(A,B,r)  ((A)==(B))
    164185
Note: See TracChangeset for help on using the changeset viewer.