From e7ad3f481373f752f5a4109bbb98f1c54f1f2502 Mon Sep 17 00:00:00 2001 From: Nick M Date: Thu, 4 May 2023 12:43:22 -0400 Subject: [PATCH] fix offset variable declarations --- trunk-recorder/systems/p25_parser.cc | 2 +- trunk-recorder/systems/p25_parser.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk-recorder/systems/p25_parser.cc b/trunk-recorder/systems/p25_parser.cc index 619cdd8cc..4f12e4fd2 100644 --- a/trunk-recorder/systems/p25_parser.cc +++ b/trunk-recorder/systems/p25_parser.cc @@ -847,7 +847,7 @@ std::vector P25Parser::decode_tsbk(boost::dynamic_bitset<> &tsbk, unsigned long spac = bitset_shift_mask(tsbk, 48, 0x3ff); unsigned long freq = bitset_shift_mask(tsbk, 16, 0xffffffff); unsigned long toff_sign = (toff0 >> 8) & 1; - unsigned long toff = toff0 & 0xff; + long toff = toff0 & 0xff; if (toff_sign == 0) { toff = 0 - toff; diff --git a/trunk-recorder/systems/p25_parser.h b/trunk-recorder/systems/p25_parser.h index 0537df730..f92c81373 100644 --- a/trunk-recorder/systems/p25_parser.h +++ b/trunk-recorder/systems/p25_parser.h @@ -12,7 +12,7 @@ struct Channel { unsigned long id; - unsigned long offset; + long offset; unsigned long step; unsigned long frequency; bool phase2_tdma;