Skip to content

Commit 97a61d0

Browse files
committed
Fix bfloat16_bits union so that it always the sizeof unsigned short.
1 parent bf3183d commit 97a61d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/compare_sgemm_sbgemm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3232
typedef union
3333
{
3434
unsigned short v;
35-
struct
35+
struct __attribute__((packed))
3636
{
3737
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
3838
unsigned short s:1;

0 commit comments

Comments
 (0)