diff --git a/Makefile b/Makefile index 310b212a..8353fad8 100644 --- a/Makefile +++ b/Makefile @@ -32,8 +32,8 @@ BINDIR=$(PREFIX)/bin # TODO - when api is finalized, only export public symbols instead of using rdynamic # which exports all symbols. Saves a few KB in binary. -CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -g -#CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -O2 -fvisibility=hidden +#CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -g +CFLAGS=-std=c99 -Wall -Wextra -Isrc/include -fpic -O2 -fvisibility=hidden CLIBS=-lm -ldl PREFIX=/usr/local DST_TARGET=dst diff --git a/src/core/util.c b/src/core/util.c index f3aac177..636ead1f 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -138,7 +138,7 @@ const void *dst_strbinsearch( } void dst_register(const char *name, Dst value) { - Dst regkey = dst_cstringv(name); + Dst regkey = dst_csymbolv(name); dst_table_put(dst_vm_registry, regkey, value); dst_table_put(dst_vm_registry, value, regkey); }