Changeset ea476c in git


Ignore:
Timestamp:
Feb 26, 1999, 3:29:01 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
f5cda4654265f877bba8ddba45e4486d7c18a16b
Parents:
c17b5f369243f602e00fde44f3104a5598691a18
Message:
hannes: fixed 'map f=..;f[i]=..'


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

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    rc17b5f rea476c  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipassign.cc,v 1.43 1999-01-18 17:25:25 Singular Exp $ */
     4/* $Id: ipassign.cc,v 1.44 1999-02-26 14:29:01 Singular Exp $ */
    55
    66/*
     
    269269    {
    270270      j=i; i=1;
    271       // for ideal/module: check indices
    272       if (res->rtyp!=MAP_CMD)
    273       {
    274         if (j>MATCOLS(m))
    275         {
    276           pEnlargeSet(&(m->m),MATCOLS(m),j-MATCOLS(m));
    277           MATCOLS(m)=j;
    278         }
    279         else if (j<=0)
    280         {
    281           Werror("index[%d] must be positive",j/*e->start*/);
    282           return TRUE;
    283         }
     271      // for all ideal like data types: check indices
     272      if (j>MATCOLS(m))
     273      {
     274        pEnlargeSet(&(m->m),MATCOLS(m),j-MATCOLS(m));
     275        MATCOLS(m)=j;
     276      }
     277      else if (j<=0)
     278      {
     279        Werror("index[%d] must be positive",j/*e->start*/);
     280        return TRUE;
    284281      }
    285282    }
Note: See TracChangeset for help on using the changeset viewer.