mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Merge pull request #3037 from laytan/fix-wrong-string-type-assert
fix wrong string type assert
This commit is contained in:
@@ -4105,7 +4105,7 @@ gb_internal lbAddr lb_build_addr_slice_expr(lbProcedure *p, Ast *expr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case Type_Basic: {
|
case Type_Basic: {
|
||||||
GB_ASSERT_MSG(type == t_string, "got %s", type_to_string(type));
|
GB_ASSERT_MSG(are_types_identical(type, t_string), "got %s", type_to_string(type));
|
||||||
lbValue len = lb_string_len(p, base);
|
lbValue len = lb_string_len(p, base);
|
||||||
if (high.value == nullptr) high = len;
|
if (high.value == nullptr) high = len;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user