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

This commit is contained in:
Patrick Kelsey 2018-08-23 17:41:39 +00:00
parent 1ee89ab5dd
commit ef9afde438

View File

@ -299,7 +299,7 @@ eval_pfaltq(struct pfctl *pf, struct pf_altq *pa, struct node_queue_bw *bw,
size = 4; size = 4;
else if (rate <= 200 * 1000 * 1000) else if (rate <= 200 * 1000 * 1000)
size = 8; size = 8;
else if (rate <= 2500 * 1000 * 1000) else if (rate <= 2500 * 1000 * 1000ULL)
size = 24; size = 24;
else else
size = 128; size = 128;