summaryrefslogtreecommitdiffstats
path: root/AffinityPanel.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-20 16:58:17 +0100
committerChristian Göttsche <cgzones@googlemail.com>2020-12-20 16:58:17 +0100
commit6b100b0cf47dda06d1dc1d38211d910488b5d803 (patch)
tree5c194a6cf2f95cb2cf14ce8487a875c37b1eab6d /AffinityPanel.c
parent6e46fd6f1fd840ef6666d6f8293b369d154a3d98 (diff)
Use upper case numeric literals
See https://rules.sonarsource.com/c/RSPEC-818
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r--AffinityPanel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/AffinityPanel.c b/AffinityPanel.c
index 767e849a..314dcae3 100644
--- a/AffinityPanel.c
+++ b/AffinityPanel.c
@@ -281,7 +281,7 @@ static MaskItem* AffinityPanel_addObject(AffinityPanel* this, hwloc_obj_t obj, u
indent_buf[0] = '\0';
if (depth > 0) {
for (unsigned i = 1; i < depth; i++) {
- xSnprintf(&indent_buf[off], left, "%s ", (indent & (1u << i)) ? CRT_treeStr[TREE_STR_VERT] : " ");
+ xSnprintf(&indent_buf[off], left, "%s ", (indent & (1U << i)) ? CRT_treeStr[TREE_STR_VERT] : " ");
size_t len = strlen(&indent_buf[off]);
off += len;
left -= len;
@@ -323,9 +323,9 @@ static MaskItem* AffinityPanel_addObject(AffinityPanel* this, hwloc_obj_t obj, u
static MaskItem* AffinityPanel_buildTopology(AffinityPanel* this, hwloc_obj_t obj, unsigned indent, MaskItem* parent) {
MaskItem* item = AffinityPanel_addObject(this, obj, indent, parent);
if (obj->next_sibling) {
- indent |= (1u << obj->depth);
+ indent |= (1U << obj->depth);
} else {
- indent &= ~(1u << obj->depth);
+ indent &= ~(1U << obj->depth);
}
for (unsigned i = 0; i < obj->arity; i++) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy