]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix compiler error
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 12 Aug 2008 18:04:59 +0000 (18:04 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 12 Aug 2008 18:04:59 +0000 (18:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9283 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 91a12b0308485f21c57a97e80563ae9689fedf48..da70856851ead697a97efba200d6b3753c9dfed9 100644 (file)
@@ -421,7 +421,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_wait_for_answer(switch_core_session_t
 
                                olen = mlen;
                                if (ringback.fh->resampler) {
-                                       olen *= ringback.fh->resampler->rfactor;
+                                       olen = (switch_size_t) (olen * ringback.fh->resampler->rfactor);
                                }
                                switch_core_file_read(ringback.fh, write_frame.data, &olen);
 
@@ -1220,7 +1220,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
 
                                                        olen = mlen;
                                                        if (ringback.fh->resampler) {
-                                                               olen *= ringback.fh->resampler->rfactor;
+                                                               olen = (switch_size_t) (olen * ringback.fh->resampler->rfactor);
                                                        }
                                                        
                                                        switch_core_file_read(ringback.fh, write_frame.data, &olen);