diff --git a/modules/gpu/src/cuda/element_operations.cu b/modules/gpu/src/cuda/element_operations.cu index d301ea0f14..9f47dabdaa 100644 --- a/modules/gpu/src/cuda/element_operations.cu +++ b/modules/gpu/src/cuda/element_operations.cu @@ -613,10 +613,10 @@ namespace cv { namespace gpu { namespace device { uint res = 0; - res |= 0xffu & (saturate_cast((0xffu & (a )) * b) ); - res |= 0xffu & (saturate_cast((0xffu & (a >> 8)) * b) << 8); - res |= 0xffu & (saturate_cast((0xffu & (a >> 16)) * b) << 16); - res |= 0xffu & (saturate_cast((0xffu & (a >> 24)) * b) << 24); + res |= (saturate_cast((0xffu & (a )) * b) ); + res |= (saturate_cast((0xffu & (a >> 8)) * b) << 8); + res |= (saturate_cast((0xffu & (a >> 16)) * b) << 16); + res |= (saturate_cast((0xffu & (a >> 24)) * b) << 24); return res; }