]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix msvc build.
authorMichael Jerris <mike@jerris.com>
Fri, 14 Dec 2007 03:17:30 +0000 (03:17 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 14 Dec 2007 03:17:30 +0000 (03:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6784 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_file.c

index 9957544e8f3a252e07471af21fbab9d0eaf6fd7e..6ed1f2a459d405d7c951fa8b6ebf71a4a367d047 100644 (file)
@@ -130,7 +130,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_read(switch_file_handle_t *fh,
                                                                           fh->native_rate,
                                                                           orig_len * 10,
                                                                           fh->samplerate,
-                                                                          orig_len * 10,
+                                                                          (uint32_t)orig_len * 10,
                                                                           fh->memory_pool) != SWITCH_STATUS_SUCCESS) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Unable to create resampler!\n");
                                return SWITCH_STATUS_GENERR;
@@ -180,7 +180,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_file_write(switch_file_handle_t *fh,
                                                                           fh->native_rate,
                                                                           orig_len * 10,
                                                                           fh->samplerate,
-                                                                          orig_len * 10,
+                                                                          (uint32_t)orig_len * 10,
                                                                           fh->memory_pool) != SWITCH_STATUS_SUCCESS) {
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Unable to create resampler!\n");
                                return SWITCH_STATUS_GENERR;