From: JTK <je...@gm...> - 2011-05-20 20:45:01
|
I don't know if this is considered a bug or if I'm pushing pretty printing beyond its limits, but when I try to use a pretty printing routine to print out huge specialized arrays I get fixnum overflows in what appears to be struct SB-PRETTY:PRETTY-STREAM slot BUFFER-OFFSET. This happens when the output file is hitting MOST-POSITIVE-FIXNUM size. This happened in SB-PRETTY:ENQUEUE-NEWLINE, but also elsewhere depending on how I modified my pretty printer. This doesn't always happen in pretty printing other objects, so I suspect it is associated with SB-PRETTY:LOGICAL-BLOCK starting the counter. It seems that pretty printing should support buffers as big as the maximum file size. Should BUFFER-OFFSET be an (UNSIGNED-BYTE 32), and would this mess up math? This is, as far as I can tell, a virtual buffer, not an actual Lisp array, so it shouldn't be bounded by the array limit. I think. This would be a problem only 32 bit architectures. John Klein |