summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-05-04 15:34:22 -0300
committerHisham <hisham@gobolinux.org>2016-05-04 15:34:22 -0300
commitfa1b5d1e2e9cd0c6c54574381723cc696325f741 (patch)
tree0fd1fafe38aefad35fece814899c029329bed164 /Process.c
parent19f0f4db27aebe986d445bd486d4c6d2ee0950b8 (diff)
Fix a small undefined behavior detected by libubsan.
Diffstat (limited to 'Process.c')
-rw-r--r--Process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Process.c b/Process.c
index dddd7fcd..c6275de4 100644
--- a/Process.c
+++ b/Process.c
@@ -394,7 +394,7 @@ void Process_writeField(Process* this, RichString* str, ProcessField field) {
int indent = (this->indent < 0 ? -this->indent : this->indent);
for (int i = 0; i < 32; i++)
- if (indent & (1 << i))
+ if (indent & (1U << i))
maxIndent = i+1;
for (int i = 0; i < maxIndent - 1; i++) {
int written;

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