Fix bfloat16_bits union so that it always the sizeof unsigned short.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user