svn commit: r338260 - head/sbin/pfctl

Patrick Kelsey pkelsey at FreeBSD.org
Thu Aug 23 17:41:40 UTC 2018


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;


More information about the svn-src-all mailing list