Changeset 632c3a in git


Ignore:
Timestamp:
Jun 20, 2012, 10:23:13 PM (11 years ago)
Author:
Alexander Dreyer <alexander.dreyer@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '1d362c315e551a5b527ab0759f8839cf0e94f3a5')
Children:
b2aa08657343fc20d230f035de4ac9ae5543a988
Parents:
eff32475b39858b9ea00d1f210285e77a6d485d1
git-author:
Alexander Dreyer <alexander.dreyer@itwm.fraunhofer.de>2012-06-20 22:23:13+02:00
git-committer:
Alexander Dreyer <alexander.dreyer@itwm.fraunhofer.de>2012-08-01 23:04:53+02:00
Message:
fix: newstruct convertible to poly and other ring-dependent commands
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/newstruct.cc

    reff324 r632c3a  
    673673  newstruct_proc p=(newstruct_proc)omAlloc(sizeof(*p));
    674674  p->next=desc->procs; desc->procs=p;
     675
     676  idhdl save_ring=currRingHdl;
     677  currRingHdl=(idhdl)1; // fake ring detection
     678
    675679  if(!IsCmd(func,p->t))
    676680  {
     
    684688    {
    685689      Werror(">>%s<< is not a kernel command",func);
     690      currRingHdl = save_ring;
    686691      return TRUE;
    687692    }
     
    689694  p->args=args;
    690695  p->p=pr; pr->ref++;
     696  currRingHdl = save_ring;
    691697  return FALSE;
    692698}
Note: See TracChangeset for help on using the changeset viewer.