Ticket #6595: sagelib_6595.patch

File sagelib_6595.patch, 1.0 KB (added by was, 10 years ago)
  • c_lib/src/ZZ_pylong.cpp

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1261531372 28800
    # Node ID 0f8ddf9c4f50a6411ce54657eb7bdd5ea038fe97
    # Parent  964c2f4ce74db0417a771de0b0cfc951b1fab73c
    trac 6595: modified sage library code' fails at c_lib if /opt/SUNWspro/bin/CC can be found. (SCons issue)
    
    diff --git a/c_lib/src/ZZ_pylong.cpp b/c_lib/src/ZZ_pylong.cpp
    a b  
    4444    mpz_set_pylong( temp, ll );
    4545    mpz_to_ZZ( &z, &temp );
    4646    mpz_clear( temp );
     47    return 0;
    4748}
  • c_lib/src/ntl_wrap.cpp

    diff --git a/c_lib/src/ntl_wrap.cpp b/c_lib/src/ntl_wrap.cpp
    a b  
    279279
    280280int ZZX_is_monic(struct ZZX* x)
    281281{
    282   IsOne(LeadCoeff(*x));
     282  return IsOne(LeadCoeff(*x));
    283283}
    284284
    285285
     
    10771077    ZZ *u = new ZZ();
    10781078    long ans = ZZ_remove(*u, rep(coeff(f, i)), p);
    10791079    delete u;
     1080    return ans;
    10801081}
    10811082
    10821083void ZZ_pX_left_pshift(struct ZZ_pX &x, const struct ZZ_pX &a, const struct ZZ &pn, const struct ZZ_pContext &c)