[Freeswitch-svn] [commit] r5726 - freeswitch/trunk/src/mod/say/mod_say_en
Freeswitch SVN
anthm at freeswitch.org
Thu Sep 20 14:05:01 EDT 2007
Author: anthm
Date: Thu Sep 20 14:05:01 2007
New Revision: 5726
Modified:
freeswitch/trunk/src/mod/say/mod_say_en/mod_say_en.c
Log:
remove useless if, cleanup for grouchy compiler
Modified: freeswitch/trunk/src/mod/say/mod_say_en/mod_say_en.c
==============================================================================
--- freeswitch/trunk/src/mod/say/mod_say_en/mod_say_en.c (original)
+++ freeswitch/trunk/src/mod/say/mod_say_en/mod_say_en.c Thu Sep 20 14:05:01 2007
@@ -175,8 +175,8 @@
if (in != 0) {
for (x = 8; x >= 0; x--) {
int num = (int) pow(10, x);
- if ((places[x] = in / num)) {
- in -= places[x] * num;
+ if ((places[(uint32_t)x] = in / num)) {
+ in -= places[(uint32_t)x] * num;
}
}
@@ -197,9 +197,7 @@
{
char *p;
for (p = tosay; p && *p; p++) {
- if (places[x] > -1) {
- say_file("digits/%c.wav", *p);
- }
+ say_file("digits/%c.wav", *p);
}
}
break;
More information about the Freeswitch-svn
mailing list