Integer out of range in POSITION form on long string
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Douglas Katzman |
Bug Description
(defun bug027 ()
(let* ((codes '(94 44 61 78 122 124 90 68 104 113 63 90 111 49 101 89 96 106 116 39 81 82 54
(s (map 'simple-base-string #'code-char codes))
(lam `(lambda (c) (position c ,s))))
(compile nil lam)))
(bug027) ==>
The value
256
is not of type
(UNSIGNED-BYTE 8)
when setting an element of (ARRAY (UNSIGNED-BYTE 8))
[Condition of type TYPE-ERROR]
Restarts:
0: [RETRY] Retry SLIME REPL evaluation request.
1: [*ABORT] Return to SLIME's top level.
2: [ABORT] abort thread (#<THREAD tid=2573 "repl-thread" RUNNING {1200BB80A3}>)
Backtrace:
0: ((SB-VM:
1: (SB-C::
2: ((SB-C:DEFTRANSFORM POSITION) #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME POSITION :TYPE #1=#<SB-
3: (SB-C::
4: (SB-C::IR1-OPTIMIZE #<SB-C:COMPONENT :NAME "<unknown>" {120E398DC3}> NIL)
5: (SB-C::
6: (SB-C::
7: (SB-C::IR1-PHASES #<SB-C:COMPONENT :NAME "<unknown>" {120E398DC3}>)
[...]
x86-64, "2.5.5.
Changed in sbcl: | |
assignee: | nobody → Douglas Katzman (dougk) |
Changed in sbcl: | |
status: | New → Fix Committed |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |