projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
1.0.27.2: fix bug in heap implementation
[sbcl.git]
/
src
/
code
/
timer.lisp
diff --git
a/src/code/timer.lisp
b/src/code/timer.lisp
index
d7c0c13
..
5a1f4fa
100644
(file)
--- a/
src/code/timer.lisp
+++ b/
src/code/timer.lisp
@@
-16,7
+16,7
@@
(declaim (inline heap-parent heap-left heap-right))
(defun heap-parent (i)
- (ash i -1))
+ (ash (1- i) -1))
(defun heap-left (i)
(1+ (ash i 1)))