aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/rtl
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@kodafritt.se>2026-05-24 10:29:16 +0200
committerSamuel Lidén Borell <samuel@kodafritt.se>2026-05-24 10:31:57 +0200
commit7c4d1d30cd8e0717dcdd39292c1b5c754aaf708a (patch)
tree206b67e907373ae02ccfbf233b3df25017011f4c /bootstrap/rtl
parent2699337ce05588b8d1af211fbc46b7e4456a8ac0 (diff)
downloadslul-try2-main.tar.gz
slul-try2-main.zip
bootstrap rtl: Make bitshift less ambiguous to readHEADmain
Diffstat (limited to 'bootstrap/rtl')
-rw-r--r--bootstrap/rtl/string.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bootstrap/rtl/string.c b/bootstrap/rtl/string.c
index 0936a84..62a2640 100644
--- a/bootstrap/rtl/string.c
+++ b/bootstrap/rtl/string.c
@@ -62,14 +62,14 @@ const unsigned char *SLUL__decode_string(
len = 0x80U + s[1];
s += 2;
} else if (format < SLUL_SL_UPTO_10001017F) {
- len = 0x180U + ((unsigned)s[1] |
- (unsigned)s[2]<<8);
+ len = 0x180U + ( (unsigned)s[1] |
+ ((unsigned)s[2]<<8U) );
s += 3;
} else {
assert(format == SLUL_SL_UPTO_10001017F);
- len = 0x10180U + ((unsigned)s[1] |
- (unsigned)s[2]<<8 |
- (unsigned)s[3]<<16);
+ len = 0x10180U + ( (unsigned)s[1] |
+ ((unsigned)s[2]<<8U) |
+ ((unsigned)s[3]<<16U) );
s += 4;
}
if (len_out) *len_out = len;