summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/coding/gsm0503_mapping.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/coding/gsm0503_mapping.c b/src/coding/gsm0503_mapping.c
index 1e37fce0..f7532eb2 100644
--- a/src/coding/gsm0503_mapping.c
+++ b/src/coding/gsm0503_mapping.c
@@ -92,13 +92,8 @@ void gsm0503_tch_burst_map(const ubit_t *iB, ubit_t *eB, const ubit_t *h, int od
eB[i] = iB[i];
for (i = 58 - odd; i < 114; i += 2)
eB[i + 2] = iB[i];
- }
-
- if (h) {
- if (!odd)
- eB[58] = *h;
- else
- eB[57] = *h;
+ if (h)
+ eB[odd ? 57 : 58] = *h;
}
}