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:
Jon Trulson
2021-12-17 15:19:07 -07:00
parent 65d17786a1
commit 35360f9900
2 changed files with 31 additions and 4 deletions

View File

@@ -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) ;
}