]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix msvc build.
authorMichael Jerris <mike@jerris.com>
Fri, 11 May 2007 16:16:00 +0000 (16:16 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 11 May 2007 16:16:00 +0000 (16:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5148 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_scheduler.c

index a763fc7924ca1ba404c9e9b074710a41247200f6..a829f0cd797532d5264f6a63931c7ced44f434d1 100644 (file)
@@ -77,7 +77,7 @@ static int task_thread_loop(int done)
                } else {
                        int64_t now = time(NULL);
                        if (now >= tp->task.runtime && !tp->in_thread) {
-                               int32_t diff = now - tp->task.runtime;
+                               int32_t diff = (int32_t)(now - tp->task.runtime);
                                if (diff > 1) {
                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Task was executed late by %d seconds %u %s (%s)\n",
                                                                          diff, tp->task.task_id, tp->desc, switch_str_nil(tp->task.group));