mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-28 05:50:51 +08:00
add braces
This commit is contained in:
parent
dfc95f34c4
commit
4f2fdf76a0
4
src/os.c
4
src/os.c
@ -1349,14 +1349,14 @@ static size_t mi_os_numa_nodex(void) {
|
|||||||
(*pGetCurrentProcessorNumberEx)(&pnum);
|
(*pGetCurrentProcessorNumberEx)(&pnum);
|
||||||
USHORT nnode = 0;
|
USHORT nnode = 0;
|
||||||
BOOL ok = (*pGetNumaProcessorNodeEx)(&pnum, &nnode);
|
BOOL ok = (*pGetNumaProcessorNodeEx)(&pnum, &nnode);
|
||||||
if (ok) numa_node = nnode;
|
if (ok) { numa_node = nnode; }
|
||||||
}
|
}
|
||||||
else if (pGetNumaProcessorNode != NULL) {
|
else if (pGetNumaProcessorNode != NULL) {
|
||||||
// Vista or earlier, use older API that is limited to 64 processors. Issue #277
|
// Vista or earlier, use older API that is limited to 64 processors. Issue #277
|
||||||
DWORD pnum = GetCurrentProcessorNumber();
|
DWORD pnum = GetCurrentProcessorNumber();
|
||||||
UCHAR nnode = 0;
|
UCHAR nnode = 0;
|
||||||
BOOL ok = pGetNumaProcessorNode((UCHAR)pnum, &nnode);
|
BOOL ok = pGetNumaProcessorNode((UCHAR)pnum, &nnode);
|
||||||
if (ok) numa_node = nnode;
|
if (ok) { numa_node = nnode; }
|
||||||
}
|
}
|
||||||
return numa_node;
|
return numa_node;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user