mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix #3894
This commit is contained in:
@@ -1120,6 +1120,8 @@ gb_internal void check_bit_field_type(CheckerContext *ctx, Type *bit_field_type,
|
|||||||
// NOTE(bill): it doesn't matter, and when it does,
|
// NOTE(bill): it doesn't matter, and when it does,
|
||||||
// that api is absolutely stupid
|
// that api is absolutely stupid
|
||||||
return Endian_Unknown;
|
return Endian_Unknown;
|
||||||
|
} else if (type_size_of(type) < 2) {
|
||||||
|
return Endian_Unknown;
|
||||||
} else if (is_type_endian_specific(type)) {
|
} else if (is_type_endian_specific(type)) {
|
||||||
if (is_type_endian_little(type)) {
|
if (is_type_endian_little(type)) {
|
||||||
return Endian_Little;
|
return Endian_Little;
|
||||||
|
|||||||
Reference in New Issue
Block a user