mirror of
https://github.com/janet-lang/janet
synced 2025-10-31 23:53:02 +00:00
Fix dst_register.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user