Changeset 25ea20d in git


Ignore:
Timestamp:
Apr 23, 1999, 5:22:31 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
84edf45dd68d5dfd0c9d370e0392d027609b08f5
Parents:
71f6706ea153c065bbdd021bb4c72b845656104c
Message:
*hannes: fixed NULL reference if minpoly is reducible


git-svn-id: file:///usr/local/Singular/svn/trunk@3007 2c84dea3-7e68-4137-9b89-c4e89433aadc
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/longalg.cc

    r71f6706 r25ea20d  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: longalg.cc,v 1.31 1999-04-17 12:30:20 Singular Exp $ */
     4/* $Id: longalg.cc,v 1.32 1999-04-23 15:22:25 Singular Exp $ */
    55/*
    66* ABSTRACT:   algebraic numbers
     
    613613  if (x->e[0] >= c->e[0])
    614614    x = napRemainder(x, c);
     615  if (x==NULL)
     616  {
     617    goto zero_divisor;
     618  }
    615619  if (x->e[0]==0)
    616620  {
     
    627631  y = napCopy(c);
    628632  napDivMod(y, x, &qa, &r);
     633  if (r==NULL)
     634  {
     635    goto zero_divisor;
     636  }
    629637  if (r->e[0]==0)
    630638  {
     
    642650  x = r;
    643651  napDivMod(y, x, &q, &r);
     652  if (r==NULL)
     653  {
     654    goto zero_divisor;
     655  }
    644656  if (r->e[0]==0)
    645657  {
     
    665677    x = r;
    666678    napDivMod(y, x, &qn, &r);
     679    if (r==NULL)
     680    {
     681      break;
     682    }
    667683    if (r->e[0]==0)
    668684    {
     
    687703    qa = y;
    688704  }
     705// zero divisor found:
     706zero_divisor:
     707  Werror("zero divisor found - your minpoly is not irreducible");
     708  return x;
    689709}
    690710
Note: See TracChangeset for help on using the changeset viewer.