hyln9 / ikarus

Optimizing incremental native-code compiler for R6RS scheme. This is a forked repository.
https://launchpad.net/ikarus
Other
5 stars 0 forks source link

`put-bytevector' should allow zero-sized writes #204

Closed hyln9 closed 10 years ago

hyln9 commented 10 years ago

Ikarus doesn't allow zero-sized writes with `put-bytevector', which should by legal, at least according to my reading of R6RS.

Ikarus Scheme version 0.0.4-rc1+, 64-bit (revision 1771, build 2009-05-08) Copyright (c) 2006-2009 Abdulaziz Ghuloum

(put-bytevector (standard-output-port) #vu8() 0) Unhandled exception Condition components:

  1. &assertion
  2. &who: put-bytevector
  3. &message: "index out of range"
  4. &irritants: (0) (put-bytevector (standard-output-port) #vu8() 0 0) Unhandled exception Condition components:
  5. &assertion
  6. &who: put-bytevector
  7. &message: "index out of range"
  8. &irritants: (0)

The attached patch should fix this.

Launchpad Details: #LP373746 Andreas Rottmann - 2009-05-08 10:55:02 -0400

hyln9 commented 10 years ago

Applied patch in revision 1790.

Launchpad Details: #LPC Abdulaziz Ghuloum - 2009-05-24 05:52:13 -0400