diff --git a/src/intel/tools/aub_read.c b/src/intel/tools/aub_read.c index a98e2c38180..6196817e9ea 100644 --- a/src/intel/tools/aub_read.c +++ b/src/intel/tools/aub_read.c @@ -39,7 +39,7 @@ #define SUBOPCODE(dw) (((dw) >> 16) & 0x7f) #define MAKE_HEADER(type, opcode, subopcode) \ - (((type) << 29) | ((opcode) << 23) | ((subopcode) << 16)) + ((((unsigned) (type)) << 29) | ((opcode) << 23) | ((subopcode) << 16)) #define TYPE_AUB 0x7