From fb21d9067f32f0579202490b87be896087948d39 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Fri, 15 Feb 2019 16:10:08 -0700 Subject: [PATCH] better c --- QnetGateway.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index b03ff0e..c769b99 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -1118,7 +1118,7 @@ void CQnetGateway::ProcessG2(const ssize_t g2buflen, const SDSVT &g2buf, const b int diff = int(0x3FU & g2buf.ctrl) - int(lastctrl); if (diff < 0) - diff = 21 + diff; + diff += 21; if (diff > 1 && diff < 4) { // fill up to 3 missing voice frames if (LOG_DEBUG) fprintf(stderr, "Warning: inserting %d missing voice frame(s)\n", diff - 1);