Skip to content

Commit e6ae6fe

Browse files
committed
Bug#32107056 SEVERAL COMPILE WARNINGS FOR MYSQL CLUSTER ON WINDOWS WITH VS 2019 [#3] [noclose]
storage\ndb\src\common\portlib\NdbThread.cpp(1240,3): warning C4805: '==': unsafe mix of type 'int' and type 'bool' in operation Change-Id: I33e3ff9845f3d3e496f64401d30eaa9b992da594
1 parent c26a939 commit e6ae6fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storage/ndb/src/common/portlib/NdbThread.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ NdbThread_LockCPUSet(struct NdbThread* pThread,
12211221
unsigned long long temp, stat, dynamic;
12221222
unsigned long long num_cpu_ids = (unsigned long long)cpu_set_ptr[0];
12231223
unsigned int *stat_part = &cpu_set_ptr[2 + num_processor_groups];
1224-
int found = FALSE;
1224+
bool found = false;
12251225
for (unsigned int i = 0; i < num_processor_groups; i++)
12261226
{
12271227
stat = (unsigned long long)stat_part[i];
@@ -1233,11 +1233,11 @@ NdbThread_LockCPUSet(struct NdbThread* pThread,
12331233
{
12341234
used_processor_group = i;
12351235
min_so_far = temp;
1236-
found = TRUE;
1236+
found = true;
12371237
}
12381238
}
12391239
}
1240-
assert(found == TRUE);
1240+
assert(found);
12411241
KAFFINITY mask;
12421242
calculate_processor_mask(&mask,
12431243
used_processor_group,

0 commit comments

Comments
 (0)