From 42a10e4700973fa95f82c7a1b21700ac43195e28 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Wed, 11 Dec 2024 16:15:05 +0100 Subject: [PATCH] Correctly initialize u64 mask 1 needs to be marked as long long, to allow shifting numbers >= 32. Otherwise, 1 is an int, limited to 32 bits. --- radio/fhi_72/oran-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/fhi_72/oran-config.c b/radio/fhi_72/oran-config.c index f165044429..ea6d158f86 100644 --- a/radio/fhi_72/oran-config.c +++ b/radio/fhi_72/oran-config.c @@ -452,7 +452,7 @@ static uint64_t get_u64_mask(const paramdef_t *pd) for (int i = 0; i < pd->numelt; ++i) { int num = pd->iptr[i]; AssertFatal(num >= 0 && num < 64, "cannot put element of %d in 64-bit mask\n", num); - mask |= 1 << num; + mask |= 1LL << num; } return mask; }