aboutsummaryrefslogtreecommitdiffstats
path: root/src/bits.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bits.c')
-rw-r--r--src/bits.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bits.c b/src/bits.c
index 01d7e735..a0a9d9e8 100644
--- a/src/bits.c
+++ b/src/bits.c
@@ -221,8 +221,7 @@ void osmo_revbytebits_buf(uint8_t *buf, int len)
}
for (i = unaligned_cnt; i + 3 < len; i += 4) {
- uint32_t *cur = (uint32_t *) (buf + i);
- *cur = osmo_revbytebits_32(*cur);
+ osmo_store32be(osmo_revbytebits_32(osmo_load32be(buf + i)), buf + i);
len_remain -= 4;
}