mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
parent
f2a174b294
commit
17e46a3b97
@ -7626,7 +7626,10 @@ void render_const_value(CodeGen *g, Buf *buf, ZigValue *const_val) {
|
||||
ZigValue *array = ptr_val->data.x_ptr.data.base_array.array_val;
|
||||
size_t start = ptr_val->data.x_ptr.data.base_array.elem_index;
|
||||
|
||||
render_const_val_array(g, buf, &type_entry->name, array, start, len);
|
||||
if (array->special == ConstValSpecialUndef)
|
||||
buf_append_str(buf, "undefined");
|
||||
else
|
||||
render_const_val_array(g, buf, &type_entry->name, array, start, len);
|
||||
} else {
|
||||
buf_appendf(buf, "(struct %s constant)", buf_ptr(&type_entry->name));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user