Skip to content
Snippets Groups Projects
Commit 7682d341 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Kirill Yukhin
Browse files

box/vynil: quota -- fix compilation warning


There is a mixture of types and clang prefer
explicit conversion (since @value is a double).

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@gmail.com>
parent 7d91ea62
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ vy_rate_limit_refill(struct vy_rate_limit *rl, double time)
double value = rl->value + size;
/* Allow bursts up to 2x rate. */
value = MIN(value, size * 2);
rl->value = MIN(value, SSIZE_MAX);
rl->value = MIN((ssize_t)value, SSIZE_MAX);
}
typedef void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment