Changeset de6884 in git


Ignore:
Timestamp:
Mar 14, 2015, 4:58:01 PM (9 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
Children:
1bf4403cdbc223010b46704e07fc2fa7b265b070
Parents:
fc5f3cbeb2fd30192c7b90f2ba70cbf89b3e8174
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2015-03-14 16:58:01+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2015-03-14 17:58:50+01:00
Message:
Fixing incompatibility with NTL8
File:
1 edited

Legend:

Unmodified
Added
Removed
  • factory/NTLconvert.cc

    rfc5f3cb rde6884  
    3131#include <NTL/tools.h>
    3232#include <NTL/mat_ZZ.h>
     33#include <NTL/version.h>
    3334#include "int_int.h"
    3435#include <limits.h>
     
    501502  }
    502503  else
    503   {
    504     long sizeofrep= ((long *) a.rep) [1];
     504  {
     505    const long * rep =
     506#if NTL_MAJOR_VERSION <= 6
     507      static_cast<long *>( a.rep );
     508#else
     509      static_cast<long *>( a.rep.rep ); // what about NTL7?
     510#endif
     511    long sizeofrep= rep[1];
    505512    bool lessZero= false;
    506513    if (sizeofrep < 0)
     
    520527      cf_stringtemp= (unsigned char*) Alloc (cf_stringtemp_l);
    521528    }
    522     int cc= mpn_get_str (cf_stringtemp, 16, (mp_limb_t *) (((long *) (a.rep)) + 2), sizeofrep);
     529    int cc= mpn_get_str (cf_stringtemp, 16, (mp_limb_t *) ((rep) + 2), sizeofrep);
    523530
    524531    char* cf_stringtemp2;
Note: See TracChangeset for help on using the changeset viewer.