diff --git a/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp b/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp index be06da3dc8..32d5c86c8f 100644 --- a/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp @@ -1181,7 +1181,7 @@ bool AqlQueue::ExceptionHandler(hsa_signal_value_t error_code, void* arg) { } for (auto& error : QueueErrors) { - if (error_code & (1 << (error.code - 1))) { + if (error_code & (1UL << (error.code - 1))) { errorCode = error.status; break; }