projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a854f73
)
Fix embarrassing typo in wttree overweight condition.
author
Taylor R Campbell
<campbell@mumble.net>
Sat, 5 Nov 2016 00:42:27 +0000
(
00:42
+0000)
committer
Taylor R Campbell
<campbell@mumble.net>
Sat, 5 Nov 2016 00:42:27 +0000
(
00:42
+0000)
Evidently we don't have adequate automatic tests for this!
src/runtime/wttree.scm
patch
|
blob
|
history
diff --git
a/src/runtime/wttree.scm
b/src/runtime/wttree.scm
index e2db7e2e5ea6084eefa0ec69fb7fe253130443cd..c05fa866b7b68bb67d7b48689bf949436af52787 100644
(file)
--- a/
src/runtime/wttree.scm
+++ b/
src/runtime/wttree.scm
@@
-128,7
+128,7
@@
we adopt here, described in
(and (fix:< a b) (fix:< (fix:lsh (fix:and a b) 1) b)))
(define-integrable (overweight? a b)
- (log2< a (fix:lsh b -1
1
)))
+ (log2< a (fix:lsh b -1)))
(define-integrable (single? a b)
(not (log2< b a)))