Karim BELABAS on Sat, 14 Jun 2003 16:17:05 +0200 (MEST)


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

Re: vecsort() bug


On Fri, 13 Jun 2003, Igor Schein wrote:
> ? vecsort(Vecsmall([2]));
>   ***   bug in GP (Segmentation Fault), please report

Theoretically forbidden, but internally allowed [ generic sort is used by
many routines, in many different guises... ]. So type checking was rather
inconsistent.

I've fixed the GP wrapper routine so that it uses the correct comparison
functions, and removed a number of hardwired assumptions from gen_sort().

    Karim.
-- 
Karim Belabas                     Tel: (+33) (0)1 69 15 57 48
Dép. de Mathématiques, Bât. 425   Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud              http://www.math.u-psud.fr/~belabas/
F-91405 Orsay (France)            http://www.parigp-home.de/  [PARI/GP]