Changeset 8062aa in git


Ignore:
Timestamp:
Sep 20, 2005, 2:22:59 PM (19 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
92a47336bf0758aed4525974ed9d7f6b8fdbb6af
Parents:
dbfb4710e3be017ee6ac29d2f2a8543580ee6bb5
Message:
*bricken: refcounting bug fixed


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

Legend:

Unmodified
Added
Removed
  • modules/python/ring_wrap.h

    rdbfb47 r8062aa  
    1 //$Id: ring_wrap.h,v 1.3 2005-09-20 08:39:44 bricken Exp $
     1//$Id: ring_wrap.h,v 1.4 2005-09-20 12:22:59 bricken Exp $
    22#ifndef RING_WRAP_HEADER
    33#define RING_WRAP_HEADER
     
    77    Ring(ring r=currRing): pimpl(r){
    88      if (r!=NULL)
    9         ++r->ref;
     9        ++(r->ref);
     10    }
     11    Ring(const Ring& r2):pimpl(r2.pimpl){
     12      pimpl->ref++;
    1013    }
    1114    ~Ring(){
    1215      if (pimpl!=NULL)
    13         --pimpl->ref;
     16        --(pimpl->ref);
    1417    }
    1518};
Note: See TracChangeset for help on using the changeset viewer.