Skip to content

Commit

Permalink
Fixed fxreverse-fixnum error (ticket #787).
Browse files Browse the repository at this point in the history
  • Loading branch information
WillClinger committed May 24, 2017
1 parent 66a0544 commit 52d391e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/R6RS/r6rs/arithmetic/fixnums.body.scm
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@

(define (fxreverse-fixnum fx k)
(if (negative? fx)
(+ 1 (fxreverse-fixnum (- fx (least-fixnum))))
(+ 1 (fxreverse-fixnum (- fx (least-fixnum)) k))
(let loop ((fx fx)
(i (- k 1))
(bits 0)
Expand Down

0 comments on commit 52d391e

Please sign in to comment.