Branch: Tag:

2015-02-13

2015-02-13 15:37:07 by Martin Nilsson <nilsson@opera.com>

Support 37.62 in digits()

622:    struct pike_string *s = 0; /* Make gcc happy. */    ptrdiff_t len;    -  if ( (base >= 2) && (base <= 36)) +  if ( + #ifdef HAVE_GMP5 +  ((base >= 2) && (base <= 62)) || ((base >= -36) && (base <= -2)) + #else +  (base >= 2) && (base <= 36) + #endif +  )    {    len = mpz_sizeinbase(mpz, base) + 2;    s = begin_shared_string(len);