mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 19:19:53 +00:00
Fix declaration error in switch statement
This commit is contained in:
parent
fad0ce3ced
commit
ee924ee310
@ -265,11 +265,11 @@ JanetSlot janetc_resolve(
|
||||
JanetBinding binding = janet_resolve_ext(c->env, sym);
|
||||
if (binding.type == JANET_BINDING_NONE) {
|
||||
Janet handler = janet_table_get(c->env, janet_ckeywordv("missing-symbol"));
|
||||
Janet entry;
|
||||
switch (janet_type(handler)) {
|
||||
case JANET_NIL:
|
||||
break;
|
||||
case JANET_FUNCTION:
|
||||
Janet entry;
|
||||
if (!lookup_missing(c, sym, janet_unwrap_function(handler), &entry))
|
||||
return janetc_cslot(janet_wrap_nil());
|
||||
binding = janet_binding_from_entry(entry);
|
||||
|
Loading…
Reference in New Issue
Block a user