diff options
author | Hisham <hisham@gobolinux.org> | 2016-05-04 15:34:22 -0300 |
---|---|---|
committer | Hisham <hisham@gobolinux.org> | 2016-05-04 15:34:22 -0300 |
commit | fa1b5d1e2e9cd0c6c54574381723cc696325f741 (patch) | |
tree | 0fd1fafe38aefad35fece814899c029329bed164 /Process.c | |
parent | 19f0f4db27aebe986d445bd486d4c6d2ee0950b8 (diff) |
Fix a small undefined behavior detected by libubsan.
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |