Fix bfloat16_bits union so that it always the sizeof unsigned short.
This commit is contained in:
parent
bf3183d31d
commit
97a61d0577
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue