diff options
Diffstat (limited to 'src/kdtree.c')
-rw-r--r-- | src/kdtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kdtree.c b/src/kdtree.c index 551bc5c..cfa5866 100644 --- a/src/kdtree.c +++ b/src/kdtree.c @@ -17,7 +17,7 @@ kdtree_t * kdtree_create(int x, int y, char * value) { kdtree_t * kdtree_insert_rec(kdtree_t **root, int x, int y, char * value, int depth) { if ((*root) == NULL) return *root = kdtree_create(x, y, value); - + int e = x < (*root)->x; if (depth % 2 == 1) e = y < (*root)->y; |