Skip to content

Commit 788fdfc

Browse files
committed
fix: p_deg/p_GetOrder for ordering am
1 parent 160f439 commit 788fdfc

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Singular/cntrlc.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/****************************************
22
* Computer Algebra System SINGULAR *
33
****************************************/
4-
/* $Id$ */
54
/*
65
* ABSTRACT - interupt handling
76
*/
@@ -222,7 +221,7 @@ void sigsegv_handler(int sig, sigcontext s)
222221
}
223222
#endif /* __OPTIMIZE__ */
224223
#ifdef CALL_GDB
225-
if (sig!=SIGINT)
224+
if (sig!=SIGINT)
226225
{
227226
if (singular_in_batchmode) debug(STACK_TRACE);
228227
else debug(INTERACTIVE);
@@ -247,7 +246,7 @@ void sigsegv_handler(int sig, sigcontext s)
247246
/*---------------------------------------------------------------------*/
248247
void sig_chld_hdl(int sig)
249248
{
250-
waitpid(-1,NULL,WNOHANG);
249+
waitpid(-1,NULL,WNOHANG);
251250
}
252251

253252
/*2

Singular/iparith.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6012,13 +6012,13 @@ static BOOLEAN jjSUBST_Test(leftv v,leftv w,
60126012
return TRUE;
60136013
}
60146014
#endif
6015-
if (!(ringvar=pVar(p)))
6015+
if ((ringvar=pVar(p))==0)
60166016
{
60176017
if (rField_is_Extension(currRing))
60186018
{
60196019
assume(currRing->cf->extRing!=NULL);
60206020
number n = pGetCoeff(p);
6021-
ringvar=- n_IsParam(n, currRing);
6021+
ringvar= -n_IsParam(n, currRing);
60226022
}
60236023
if(ringvar==0)
60246024
{

libpolys/polys/monomials/p_polys.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ static inline long p_GetOrder(poly p, ring r)
436436
{
437437
switch(r->typ[i].ord_typ)
438438
{
439+
case ro_am:
439440
case ro_wp_neg:
440441
return (((long)((p)->exp[r->pOrdIndex]))-POLY_NEGWEIGHT_OFFSET);
441442
case ro_syzcomp:

0 commit comments

Comments
 (0)