Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix type checking of stream element-type #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

avodonosov
Copy link

@avodonosov avodonosov commented Apr 1, 2017

Fixes the following use case:

(ironclad:digest-stream :md5 (flexi-streams:make-in-memory-input-stream #(1 2 3)))
Unsupported stream element-type FLEXI-STREAMS:OCTET for stream #<FLEXI-STREAMS::VECTOR-INPUT-STREAM #x302119FBE6AD>.
   [Condition of type SIMPLE-ERROR]

Restarts:
 0: [RETRY] Retry SLIME interactive evaluation request.
 1: [*ABORT] Return to SLIME's top level.
 2: [ABORT-BREAK] Reset this thread
 3: [ABORT] Kill this thread

Backtrace:
  0: (IRONCLAD::UPDATE-DIGEST-FROM-STREAM #S(IRONCLAD:MD5 :AMOUNT 0 :BUFFER #(0 0 0 0 0 0 ...) :BUFFER-INDEX ...) #<FLEXI-STREAMS::VECTOR-INPUT-STREAM #x302119FBE6AD> :BUFFER NIL :START 0 :END NIL)
  1: (#<STANDARD-METHOD IRONCLAD:DIGEST-STREAM (T T)> #S(IRONCLAD:MD5 :AMOUNT 0 :BUFFER #(0 0 0 0 0 0 ...) :BUFFER-INDEX ...) #<FLEXI-STREAMS::VECTOR-INPUT-STREAM #x302119FBE6AD> :BUFFER NIL :START 0 :END ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant