Fix bfloat16_bits union so that it always the sizeof unsigned short.

This commit is contained in:
Chip-Kerchner 2023-10-11 17:36:43 -05:00
parent bf3183d31d
commit 97a61d0577
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
typedef union
{
unsigned short v;
struct
struct __attribute__((packed))
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
unsigned short s:1;