mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-06 06:38:20 +00:00
Fix GB_PANIC format string in lb_emit_conv invalid subtype cast
The panic string passed two type names but only had one %s placeholder.
This commit is contained in:
@@ -2579,7 +2579,7 @@ gb_internal lbValue lb_emit_conv(lbProcedure *p, lbValue value, Type *t) {
|
||||
sel.index.allocator = temporary_allocator();
|
||||
if (lookup_subtype_polymorphic_selection(t, src_type, &sel)) {
|
||||
if (sel.entity == nullptr) {
|
||||
GB_PANIC("invalid subtype cast %s -> ", type_to_string(src_type), type_to_string(t));
|
||||
GB_PANIC("invalid subtype cast %s -> %s", type_to_string(src_type), type_to_string(t));
|
||||
}
|
||||
if (st_is_ptr) {
|
||||
lbValue res = lb_emit_deep_field_gep(p, value, sel);
|
||||
|
||||
Reference in New Issue
Block a user