mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Added levenshtein.c3 to working files. Fixes to reverse indexing. Added min/max functions. Tentatively removed "opaque"
This commit is contained in:
@@ -274,8 +274,8 @@ bool type_is_homogenous_aggregate(Type *type, Type **base, unsigned *elements)
|
||||
if (type->type_kind == TYPE_VECTOR)
|
||||
{
|
||||
// Widen the type with elements.
|
||||
unsigned vec_elements = type_size(type) / type_size(type->vector.base);
|
||||
*base = type_get_vector(type->vector.base, vec_elements);
|
||||
unsigned vec_elements = type_size(type) / type_size(type->array.base);
|
||||
*base = type_get_vector(type->array.base, vec_elements);
|
||||
}
|
||||
}
|
||||
// One is vector - other isn't => failure
|
||||
|
||||
Reference in New Issue
Block a user