Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2018 17:41:39 +0000 (UTC)
From:      Patrick Kelsey <pkelsey@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r338260 - head/sbin/pfctl
Message-ID:  <201808231741.w7NHfdrZ050694@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkelsey
Date: Thu Aug 23 17:41:39 2018
New Revision: 338260
URL: https://svnweb.freebsd.org/changeset/base/338260

Log:
  Fix warning about crossing INT32_MAX boundary in computation of constant value.

Modified:
  head/sbin/pfctl/pfctl_altq.c

Modified: head/sbin/pfctl/pfctl_altq.c
==============================================================================
--- head/sbin/pfctl/pfctl_altq.c	Thu Aug 23 17:27:02 2018	(r338259)
+++ head/sbin/pfctl/pfctl_altq.c	Thu Aug 23 17:41:39 2018	(r338260)
@@ -299,7 +299,7 @@ eval_pfaltq(struct pfctl *pf, struct pf_altq *pa, stru
 			size = 4;
 		else if (rate <= 200 * 1000 * 1000)
 			size = 8;
-		else if (rate <= 2500 * 1000 * 1000)
+		else if (rate <= 2500 * 1000 * 1000ULL)
 			size = 24;
 		else
 			size = 128;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808231741.w7NHfdrZ050694>