1.0.27.2: fix bug in heap implementation
[sbcl.git] / src / code / timer.lisp
index d7c0c13..5a1f4fa 100644 (file)
@@ -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)))