Changeset 595145 in git for libpolys


Ignore:
Timestamp:
May 26, 2016, 10:48:10 AM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
c21def206345e194f51f5b0d9c86daf757b940f6
Parents:
181bf31ff3cd5591f8ad17307f4c78803ea11f4e
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2016-05-26 10:48:10+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2016-05-26 11:41:44+02:00
Message:
ring handling (allow NULL for undefined): fix tr. #764
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.cc

    r181bf31 r595145  
    644644char * rString(ring r)
    645645{
    646   if (r!=NULL)
     646  if ((r!=NULL)&&(r->cf!=NULL))
    647647  {
    648648    char *ch=rCharStr(r);
     
    657657  }
    658658  else
    659     return omStrDup("NULL");
     659    return omStrDup("undefined");
    660660}
    661661
     
    13021302int rSum(ring r1, ring r2, ring &sum)
    13031303{
     1304  if ((r1==NULL)||(r2==NULL)
     1305  ||(r1->cf==NULL)||(r2->cf==NULL))
     1306    return -1;
    13041307  if (r1==r2)
    13051308  {
Note: See TracChangeset for help on using the changeset viewer.