mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-30 05:56:12 +00:00
remove useless if, cleanup for grouchy compiler
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5726 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
42d4b28019
commit
7200b0d415
@ -175,8 +175,8 @@ static switch_status_t en_say_general_count(switch_core_session_t *session,
|
|||||||
if (in != 0) {
|
if (in != 0) {
|
||||||
for (x = 8; x >= 0; x--) {
|
for (x = 8; x >= 0; x--) {
|
||||||
int num = (int) pow(10, x);
|
int num = (int) pow(10, x);
|
||||||
if ((places[x] = in / num)) {
|
if ((places[(uint32_t)x] = in / num)) {
|
||||||
in -= places[x] * num;
|
in -= places[(uint32_t)x] * num;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -197,11 +197,9 @@ static switch_status_t en_say_general_count(switch_core_session_t *session,
|
|||||||
{
|
{
|
||||||
char *p;
|
char *p;
|
||||||
for (p = tosay; p && *p; p++) {
|
for (p = tosay; p && *p; p++) {
|
||||||
if (places[x] > -1) {
|
|
||||||
say_file("digits/%c.wav", *p);
|
say_file("digits/%c.wav", *p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user