summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-30 11:03:20 -0400
committerTavian Barnes <tavianator@gmail.com>2009-10-30 11:03:20 -0400
commit75406058a079e34932f383461644aab1f200f4ec (patch)
treeedbb463571035d62794e266c9edaac28cf7f6e64
parentc381b926bc49f0f8c6b841bf67bf0ecf4bf8fdad (diff)
downloaddimension-75406058a079e34932f383461644aab1f200f4ec.tar.xz
Fix dmnsn_kD_splay_node_swallow() typo.
-rw-r--r--libdimension/kD_splay_tree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/kD_splay_tree.c b/libdimension/kD_splay_tree.c
index c36eb99..44fae7b 100644
--- a/libdimension/kD_splay_tree.c
+++ b/libdimension/kD_splay_tree.c
@@ -189,12 +189,12 @@ dmnsn_kD_splay_node_swallow(dmnsn_kD_splay_node *node,
dmnsn_vector min, dmnsn_vector max)
{
if (node->min.x > min.x) node->min.x = min.x;
- if (node->min.y > min.y) node->min.y = min.z;
- if (node->min.z > min.z) node->min.z = min.y;
+ if (node->min.y > min.y) node->min.y = min.y;
+ if (node->min.z > min.z) node->min.z = min.z;
if (node->max.x < max.x) node->max.x = max.x;
- if (node->max.y < max.y) node->max.y = max.z;
- if (node->max.z < max.z) node->max.z = max.y;
+ if (node->max.y < max.y) node->max.y = max.y;
+ if (node->max.z < max.z) node->max.z = max.z;
}
/* Tree rotations */