From 5668a1da78e40533fce5b1f541e0016894d5ec42 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 20 Sep 2020 22:47:38 +0200 Subject: [PATCH] Turn this into global constant --- libretro-db/bintree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libretro-db/bintree.c b/libretro-db/bintree.c index 1a19010d78..6015f413a0 100644 --- a/libretro-db/bintree.c +++ b/libretro-db/bintree.c @@ -43,8 +43,7 @@ struct bintree bintree_cmp_func cmp; }; -/* TODO/FIXME - static global variable */ -static void *NIL_NODE = &NIL_NODE; +static void * const NIL_NODE = (void*)&NIL_NODE; static struct bintree_node *bintree_new_nil_node( struct bintree_node *parent)