summaryrefslogtreecommitdiffstats
path: root/player/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/client.c')
-rw-r--r--player/client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/client.c b/player/client.c
index 91c86f4a88..e05fc87303 100644
--- a/player/client.c
+++ b/player/client.c
@@ -985,7 +985,9 @@ static bool conv_node_to_format(void *dst, mpv_format dst_fmt, mpv_node *src)
return true;
}
if (dst_fmt == MPV_FORMAT_INT64 && src->format == MPV_FORMAT_DOUBLE) {
- if (src->u.double_ >= INT64_MIN && src->u.double_ <= INT64_MAX) {
+ if (src->u.double_ > (double)INT64_MIN &&
+ src->u.double_ < (double)INT64_MAX)
+ {
*(int64_t *)dst = src->u.double_;
return true;
}