Changeset caa9c4 in git


Ignore:
Timestamp:
Jun 22, 2021, 4:40:52 PM (3 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '98550b669234b32be762076c32b3be2c35188ac4')
Children:
9219133c463b1ef39cd6e6e9fe04673538fdd5e8
Parents:
da0c752a1b75564371344c430f1b1f95bb02fbaf
Message:
fix: conversion: longR ->Z
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/rintegers2.cc

    rda0c75 rcaa9c4  
    374374}
    375375
     376static number nrzMaplongR(number from, const coeffs src, const coeffs dst)
     377{
     378  gmp_float *ff=(gmp_float*)from;
     379  if (mpf_fits_slong_p(ff->t))
     380  {
     381    long l=mpf_get_si(ff->t);
     382    return nrzInit(l,dst);
     383  }
     384  return nrzInit(0,dst);
     385}
     386
    376387static nMapFunc nrzSetMap(const coeffs src, const coeffs /*dst*/)
    377388{
     
    398409  {
    399410    return nrzMapQ;
     411  }
     412  if (nCoeff_is_long_R(src))
     413  {
     414    return nrzMaplongR;
    400415  }
    401416  return NULL;      // default
Note: See TracChangeset for help on using the changeset viewer.