mirror of
https://github.com/janet-lang/janet
synced 2025-08-30 01:18:03 +00:00
Fix struct proto missing when making a struct with a nil value.
This commit is contained in:
@@ -150,6 +150,7 @@ const JanetKV *janet_struct_end(JanetKV *st) {
|
|||||||
janet_struct_put(newst, kv->key, kv->value);
|
janet_struct_put(newst, kv->key, kv->value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
janet_struct_proto(newst) = janet_struct_proto(st);
|
||||||
st = newst;
|
st = newst;
|
||||||
}
|
}
|
||||||
janet_struct_hash(st) = janet_kv_calchash(st, janet_struct_capacity(st));
|
janet_struct_hash(st) = janet_kv_calchash(st, janet_struct_capacity(st));
|
||||||
|
Reference in New Issue
Block a user