trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject trafficserver git commit: generator: fix signed comparison for gcc
Date Tue, 16 Dec 2014 04:57:37 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 8b3d21def -> 3b43289cf


generator: fix signed comparison for gcc


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/3b43289c
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/3b43289c
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/3b43289c

Branch: refs/heads/master
Commit: 3b43289cf79ec762c3be70909dcbe70d535fb670
Parents: 8b3d21d
Author: James Peach <jpeach@apache.org>
Authored: Mon Dec 15 20:57:24 2014 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Mon Dec 15 20:57:24 2014 -0800

----------------------------------------------------------------------
 plugins/experimental/generator/generator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/3b43289c/plugins/experimental/generator/generator.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/generator/generator.cc b/plugins/experimental/generator/generator.cc
index 26138cb..610e64e 100644
--- a/plugins/experimental/generator/generator.cc
+++ b/plugins/experimental/generator/generator.cc
@@ -469,7 +469,7 @@ GeneratorInterceptionHook(TSCont contp, TSEvent event, void * edata)
     if (cdata.grq->nbytes) {
       int64_t nbytes;
 
-      if (cdata.grq->nbytes >= sizeof(GeneratorData)) {
+      if (cdata.grq->nbytes >= (ssize_t)sizeof(GeneratorData)) {
         nbytes = sizeof(GeneratorData);
       } else {
         nbytes = cdata.grq->nbytes % sizeof(GeneratorData);


Mime
View raw message