aboutsummaryrefslogtreecommitdiffstats
path: root/GSM/GSMCommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'GSM/GSMCommon.h')
-rw-r--r--GSM/GSMCommon.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/GSM/GSMCommon.h b/GSM/GSMCommon.h
index 80c5608..e255be3 100644
--- a/GSM/GSMCommon.h
+++ b/GSM/GSMCommon.h
@@ -116,9 +116,8 @@ class Time {
Time& decTN(unsigned step=1)
{
- assert(step<=8);
mTN -= step;
- if (mTN<0) {
+ while (mTN<0) {
mTN+=8;
mFN-=1;
if (mFN<0) mFN+=gHyperframe;
@@ -128,9 +127,8 @@ class Time {
Time& incTN(unsigned step=1)
{
- assert(step<=8);
mTN += step;
- if (mTN>7) {
+ while (mTN>7) {
mTN-=8;
mFN = (mFN+1) % gHyperframe;
}