diff options
| author | Gleb Popov <arrowd@FreeBSD.org> | 2019-12-21 11:38:48 +0000 |
|---|---|---|
| committer | Gleb Popov <arrowd@FreeBSD.org> | 2019-12-21 11:38:48 +0000 |
| commit | 3f791e31fd4d8e183e6f430c14ec94d54ab4a0f7 (patch) | |
| tree | 9befa1e1b62afbcd006c9eae211b132f84a10d5c /sys/contrib | |
| parent | fc8ae86a8f2511af81db68447fa9279d26493725 (diff) | |
Notes
Diffstat (limited to 'sys/contrib')
| -rw-r--r-- | sys/contrib/ncsw/Peripherals/QM/qm_portal_fqr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/contrib/ncsw/Peripherals/QM/qm_portal_fqr.c b/sys/contrib/ncsw/Peripherals/QM/qm_portal_fqr.c index 4528a0f422ae..bdb7d5175530 100644 --- a/sys/contrib/ncsw/Peripherals/QM/qm_portal_fqr.c +++ b/sys/contrib/ncsw/Peripherals/QM/qm_portal_fqr.c @@ -1468,7 +1468,7 @@ static t_Error CalcWredCurve(t_QmCgWredCurve *p_WredCurve, uint32_t *p_CurveWor for (tmpA=(uint32_t)(64*pres) ; tmpA<128*pres; tmpA += pres ) for (tmpN=7 ; tmpN<64; tmpN++ ) { - tmp = ABS((int)(slope - tmpA/(1<<tmpN))); + tmp = ABS((int)(slope - tmpA/(1UL<<(tmpN%32)))); if (tmp < gap) { sa = tmpA; |
