Skip to content

Commit 1b5060e

Browse files
committed
修正将int转换为DisplayItemSet时的一处错误
1 parent 9996203 commit 1b5060e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TrafficMonitor/DisplayItem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ void DisplayItemSet::FromInt(int value)
206206
//将int的每个bit位转换成set中的枚举值
207207
for (const auto& item : AllDisplayItems)
208208
{
209-
if (value <= 31 && (value & (1 << item)))
209+
if (item <= 31 && (value & (1 << item)))
210210
data.insert(item);
211211
}
212212
}

0 commit comments

Comments
 (0)