You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2016/05/15 01:38:47 UTC

[trafficserver] branch master updated: TS-4410 : Fixed compiler warning on i386 builds

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  fc2a6fe   TS-4410 : Fixed compiler warning on i386 builds
fc2a6fe is described below

commit fc2a6feff5f866740f9297467c2850120b793b9a
Author: Peter Chou <pb...@labs.att.com>
AuthorDate: Mon May 2 11:44:24 2016 -0700

    TS-4410 : Fixed compiler warning on i386 builds
    
    This is for unsigned-vs-signed int comparison.
    
    This closes #611
---
 iocore/hostdb/I_HostDBProcessor.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/iocore/hostdb/I_HostDBProcessor.h b/iocore/hostdb/I_HostDBProcessor.h
index 852794c..ebcd2dc 100644
--- a/iocore/hostdb/I_HostDBProcessor.h
+++ b/iocore/hostdb/I_HostDBProcessor.h
@@ -288,7 +288,7 @@ struct HostDBInfo {
       //  as to how far in the future we should tolerate bogus last
       //  failure times.  This sets the upper bound that we would ever
       //  consider a server down to 2*down_server_timeout
-      if (now + fail_window < last_failure) {
+      if ((unsigned int)(now + fail_window) < last_failure) {
         app.http_data.last_failure = 0;
         return false;
       }

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].