diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-10-30 11:03:20 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-10-30 11:03:20 -0400 |
commit | 75406058a079e34932f383461644aab1f200f4ec (patch) | |
tree | edbb463571035d62794e266c9edaac28cf7f6e64 /libdimension/kD_splay_tree.c | |
parent | c381b926bc49f0f8c6b841bf67bf0ecf4bf8fdad (diff) | |
download | dimension-75406058a079e34932f383461644aab1f200f4ec.tar.xz |
Fix dmnsn_kD_splay_node_swallow() typo.
Diffstat (limited to 'libdimension/kD_splay_tree.c')
-rw-r--r-- | libdimension/kD_splay_tree.c | 8 |
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 */ |