fix bug in switch_itodtmf from a8f5bf60a8

This commit is contained in:
Anthony Minessale 2011-02-22 18:35:54 -06:00
parent e0a0a56f24
commit b53a684843
1 changed files with 4 additions and 2 deletions

View File

@ -189,10 +189,12 @@ static inline char switch_itodtmf(char i)
char r = i;
if (i > 9 && i < 14) {
r = i + 55;
r += 55;
} else {
r += 48;
}
return r + 48;
return r;
}
static inline int switch_dtmftoi(char *s)