Karim Belabas on Wed, 06 Apr 2016 17:46:54 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Fix itos() for LONG_MIN


* Jeroen Demeyer [2016-04-06 16:38]:
> The PARI function itos() gives an error for LONG_MIN.

This is intentional: the output x of itos(gx) must allow -x. (Otherwise
lots of libpari functions break unpredictably on input stoi(LONG_MIN).)
Hence the choice to forbid this possible value in itos.

I will document the current behaviour.

Cheers,

    K.B.
--
Karim Belabas, IMB (UMR 5251)  Tel: (+33) (0)5 40 00 26 17
Universite de Bordeaux         Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~kbelabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]
`