Fix compiler warning on linux.

The resulting compiler binary would also crash with a core dump when
trying to compile odin code with it.
This commit is contained in:
Ionut Ciuperca
2026-04-30 06:48:37 +01:00
parent 5dfd110be3
commit b043ff2c87

View File

@@ -339,8 +339,8 @@ gb_internal bool is_simd_able_type(Type *t) {
TypeEndianKind kind = type_endian_kind_of(t);
switch (kind) {
case TypeEndian_Platform: return true;
case TypeEndian_Little: return build_context.endian_kind == TypeEndian_Little;
case TypeEndian_Big: return build_context.endian_kind == TypeEndian_Big;
case TypeEndian_Little: return build_context.endian_kind == TargetEndian_Little;
case TypeEndian_Big: return build_context.endian_kind == TargetEndian_Big;
}
}
return false;