Revert "dtcalc: Change the prototype of matherr() to reflect actual usage and remove warnings."
This reverts commit a9175c896d.
This is the wrong fix for matherr() troubles.
This commit is contained in:
@@ -677,7 +677,7 @@ do_factorial(int *MPval, int *MPres) /* Calculate the factorial of MPval. */
|
||||
}
|
||||
mpcim(&i, MPa) ;
|
||||
mpcmi(MP1, &i) ;
|
||||
if (!i) matherr() ;
|
||||
if (!i) matherr((struct exception *) NULL) ;
|
||||
else
|
||||
while (i > 0)
|
||||
{
|
||||
@@ -687,7 +687,7 @@ do_factorial(int *MPval, int *MPres) /* Calculate the factorial of MPval. */
|
||||
i-- ;
|
||||
}
|
||||
}
|
||||
else matherr() ;
|
||||
else matherr((struct exception *) NULL) ;
|
||||
mpstr(MPa, MPres) ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user