From: Sam S. <sd...@gn...> - 2007-03-28 18:43:15
|
Vadim Konovalov wrote: > >> "congratulations, I suppose"... >> you've got yourself corrupted memory. > > > Seemingly this isn't exactly the memory corruption. > Attached is the patch to fix it,. > > --- lispbibl.d.orig 2006-10-12 04:05:23.000000000 +0400 > +++ lispbibl.d 2007-03-28 20:20:13.678558400 +0400 > /* the position of the last const (or doc or lalist!) */ > -#define Cclosure_last_const(obj) (Cclosure_length(obj) - 1 - \ > +#define Cclosure_last_const(obj) (Cclosure_length(obj) - \ > (sizeof(*(Cclosure)0) - offsetofa(srecord_,recdata))/sizeof(gcv_object_t)) does it pass all the test suites? (clisp, sacla, ansi)? this appears to change the meaning of the number from the last valid element to the position right behind it. also, please try the CVS head. Thanks. Sam. |