aboutsummaryrefslogtreecommitdiffstats
path: root/op25
diff options
context:
space:
mode:
authorMax <ikj1234i@yahoo.com>2017-11-22 18:56:52 -0500
committerMax <ikj1234i@yahoo.com>2017-11-22 18:56:52 -0500
commit2d52d95a0a6e7709253aaf0c94ab20fb9f9db294 (patch)
tree40cd2d9f08689c97be5ea0f4998179ff3694b50b /op25
parentd3719bd11c6dc18de536b219f95f471e915b263e (diff)
bugfix: static in check_frame_sync
Diffstat (limited to 'op25')
-rw-r--r--op25/gr-op25_repeater/lib/check_frame_sync.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/op25/gr-op25_repeater/lib/check_frame_sync.h b/op25/gr-op25_repeater/lib/check_frame_sync.h
index d361f19..bf2498c 100644
--- a/op25/gr-op25_repeater/lib/check_frame_sync.h
+++ b/op25/gr-op25_repeater/lib/check_frame_sync.h
@@ -6,7 +6,7 @@
static inline bool check_frame_sync(uint64_t x, int err_threshold, int len) {
int errs=0;
- static const uint64_t mask = (1LL<<len)-1;
+ const uint64_t mask = (1LL<<len)-1LL;
x = x & mask;
// source: https://en.wikipedia.org/wiki/Hamming_weight
static const uint64_t m1 = 0x5555555555555555; //binary: 0101...