summaryrefslogtreecommitdiffstats
path: root/lib/nghttp2_ratelim.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nghttp2_ratelim.c')
-rw-r--r--lib/nghttp2_ratelim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nghttp2_ratelim.c b/lib/nghttp2_ratelim.c
index 7011655..604ac08 100644
--- a/lib/nghttp2_ratelim.c
+++ b/lib/nghttp2_ratelim.c
@@ -61,7 +61,7 @@ void nghttp2_ratelim_update(nghttp2_ratelim *rl, uint64_t tstamp) {
}
rl->val += gain;
- rl->val = nghttp2_min(rl->val, rl->burst);
+ rl->val = nghttp2_min_uint64(rl->val, rl->burst);
}
int nghttp2_ratelim_drain(nghttp2_ratelim *rl, uint64_t n) {