mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-25 16:13:17 +00:00
"fix" this for compiling under the sticter ELF linker.. There was a
reference to an undefined function (digit_value_in_base()) that was static elsewhere that it was used.
This commit is contained in:
parent
2eba9bcd51
commit
3be5a5220c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28883
@ -26,6 +26,27 @@ MA 02111-1307, USA. */
|
||||
#include "gmp.h"
|
||||
#include "gmp-impl.h"
|
||||
|
||||
static int
|
||||
digit_value_in_base (c, base)
|
||||
int c;
|
||||
int base;
|
||||
{
|
||||
int digit;
|
||||
|
||||
if (isdigit (c))
|
||||
digit = c - '0';
|
||||
else if (islower (c))
|
||||
digit = c - 'a' + 10;
|
||||
else if (isupper (c))
|
||||
digit = c - 'A' + 10;
|
||||
else
|
||||
return -1;
|
||||
|
||||
if (digit < base)
|
||||
return digit;
|
||||
return -1;
|
||||
}
|
||||
|
||||
void
|
||||
#if __STDC__
|
||||
min (MINT *dest)
|
||||
|
Loading…
Reference in New Issue
Block a user