rocr: Fix Unintentional Integer Overflow

Its safer to have the integer literal explicitly be an unsigned long
in this expression as that's what the type of the errorCode variable
resolves to, preventing any overflow errors.

Signed-off-by: Sunday Clement <Sunday.Clement@amd.com>


[ROCm/ROCR-Runtime commit: dce52be686]
Cette révision appartient à :
Sunday Clement a créé et Clement, Sunday a révisé 2025-06-09 15:16:10 -04:00
1 Parent 1eaee1649a
révision 5c7524ba3e
1 fichier modifié
+1 -1
+1 -1
Voir le fichier
@@ -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;
}