Changeset 71effd8 in git


Ignore:
Timestamp:
Jan 7, 2009, 3:51:11 PM (14 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
Children:
b260a453e69d26f5718c152ac7d411b45c8adb9a
Parents:
753f9d279599c9b867a6d1e24ceace76b99a5066
Message:
*hannes: ringflaga


git-svn-id: file:///usr/local/Singular/svn/trunk@11285 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/ring.cc

    r753f9d2 r71effd8  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ring.cc,v 1.107 2009-01-06 16:46:40 Singular Exp $ */
     4/* $Id: ring.cc,v 1.108 2009-01-07 14:51:11 Singular Exp $ */
    55
    66/*
     
    515515#ifdef HAVE_RINGS
    516516  if (r->ringflaga != NULL)
     517  {
    517518    mpz_clear(r->ringflaga);
     519    omFree((ADDRESS)r->ringflaga);
     520  }
    518521#endif
    519522  omFreeBin(r, ip_sring_bin);
     
    14921495#ifdef HAVE_RINGS
    14931496  res->ringtype=r->ringtype;  /* cring = 0 => coefficient field, cring = 1 => coeffs from Z/2^m */
    1494   if (r->ringflaga!=NULL) mpz_set(res->ringflaga,r->ringflaga);
     1497  if (r->ringflaga!=NULL)
     1498  {
     1499    res->ringflaga = (int_number) omAlloc(sizeof(MP_INT));
     1500    mpz_set(res->ringflaga,r->ringflaga);
     1501  }
    14951502  res->ringflagb=r->ringflagb;
    14961503#endif
Note: See TracChangeset for help on using the changeset viewer.