diff --git a/data-lib/data/splay-tree.rkt b/data-lib/data/splay-tree.rkt index cbd232e..f022d4a 100644 --- a/data-lib/data/splay-tree.rkt +++ b/data-lib/data/splay-tree.rkt @@ -478,7 +478,7 @@ Options (let loop ([x root] [onto null] [k* 0]) (match x [(node key value left right) - (let ([key (+ key k*)]) + (let ([key (if adjust? (+ key k*) key)]) (loop left (cons (cons key value) (loop right onto key))