Fix compiler warning in TestPciReadWrite

Use unsigned number for left shift operation. If not specificed as
unsigned, compiler throws warning about left shift of negative
number.

Change-Id: I05948073b0c40700bee69399b08df6031fc49d70


[ROCm/rocm_smi_lib commit: 9d24fc9175]
这个提交包含在:
Mukul Joshi 于 2020-07-13 17:32:17 -04:00 提交
1 父节点 fdda24038f
当前提交 fd17bdb90f
1 个文件已更改
+1 -1
@@ -164,7 +164,7 @@ void TestPciReadWrite::Run(void) {
ASSERT_EQ(ret, RSMI_STATUS_INVALID_ARGS);
// First set the bitmask to all supported bandwidths
freq_bitmask = ~(~0 << bw.transfer_rate.num_supported);
freq_bitmask = ~(~0u << bw.transfer_rate.num_supported);
// Then, set the bitmask to all bandwidths besides the initial BW
freq_bitmask ^= (1 << bw.transfer_rate.current);