Changeset 0e1284 in git


Ignore:
Timestamp:
May 7, 1999, 12:11:08 PM (25 years ago)
Author:
Thomas Siebert <siebert@…>
Branches:
(u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
Children:
473707b9775f04fb08c29447d508f18d294cbd31
Parents:
c59d88ee06883f262adb708e6846ac13d54018e3
Message:
Berichtigung zu bug_4 - idSort problem


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

Legend:

Unmodified
Added
Removed
  • Singular/ideals.cc

    rc59d88e r0e1284  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ideals.cc,v 1.43 1999-05-06 16:56:16 Singular Exp $ */
     4/* $Id: ideals.cc,v 1.44 1999-05-07 10:11:08 siebert Exp $ */
    55/*
    66* ABSTRACT - all basic methods to manipulate ideals
     
    468468      }
    469469      if (newpos<0) newpos = 0;
    470       if (newpos>=actpos)
    471       {
    472         (*result)[actpos] = i;
    473       }
    474       else
    475       {
    476         for (j=actpos;j>newpos;j--)
    477         {
    478           (*result)[j] = (*result)[j-1];
    479         }
    480         (*result)[newpos] = i;
    481       }
     470      if (newpos>actpos) newpos = actpos;
     471      while ((newpos<actpos) && (pComp0(id->m[i],id->m[(*result)[newpos]])==0))
     472        newpos++;
     473      for (j=actpos;j>newpos;j--)
     474      {
     475        (*result)[j] = (*result)[j-1];
     476      }
     477      (*result)[newpos] = i;
    482478      actpos++;
    483479    }
Note: See TracChangeset for help on using the changeset viewer.