Re: guile arrays in 1.9

2010-01-09 Thread Daniel Llorens del Río
On 9 Jan, 2010, at 22:41, Andy Wingo wrote: scheme@(guile-user)> ,option interp #t Aha, thanks. This was an interesting bug (see commit c5f171027d9 if you are interested). I honestly don't know enough of the internals of Guile to comment, but I appreciate the pointer. I fixed thi

Re: guile arrays in 1.9

2010-01-09 Thread Andy Wingo
Hi, On Fri 08 Jan 2010 18:41, Daniel Llorens del Río writes: > On 7 Jan, 2010, at 17:29, Andy Wingo wrote: > >> Could be that the tests are running only with the interpreter, and the >> bugs that you're seeing only appear when an array is attempted to be >> serialized out to object code. > > Mm

Re: guile arrays in 1.9

2010-01-08 Thread Daniel Llorens del Río
On 7 Jan, 2010, at 17:29, Andy Wingo wrote: Could be that the tests are running only with the interpreter, and the bugs that you're seeing only appear when an array is attempted to be serialized out to object code. Mm, I don't know how to debug that… You are :-)) Just so… :) More. In 1.8

Re: guile arrays in 1.9

2010-01-07 Thread Andy Wingo
Hi, On Thu 07 Jan 2010 16:13, Daniel Llorens del Río writes: > array->list is broken in 1.9.6: Ooh, I'm definitely the guilty one here. I "cleaned up" this code, with predictable consequences. > scheme@(guile-user)> (array->list #(0 1)) > ERROR: Value out of range: -1 Just pushed a fix. >

guile arrays in 1.9

2010-01-07 Thread Daniel Llorens del Río
Hello, array->list is broken in 1.9.6: scheme@(guile-user)> (array->list #(0 1)) ERROR: Value out of range: -1 Patch for libguile/generalized-arrays.c: 246c246 < size_t i, lbnd; --- > ssize_t i, lbnd; 251c251 < pos += (i - h->dims[dim].ubnd) * inc; --- > pos += (i - l