diff options
Diffstat (limited to 'src/dbusbind.c')
-rw-r--r-- | src/dbusbind.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c index e7c3251c14b..d2460fd886e 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c @@ -526,7 +526,7 @@ xd_extract_signed (Lisp_Object x, intmax_t lo, intmax_t hi) else { double d = XFLOAT_DATA (x); - if (lo <= d && d <= hi) + if (lo <= d && d < 1.0 + hi) { intmax_t n = d; if (n == d) @@ -554,7 +554,7 @@ xd_extract_unsigned (Lisp_Object x, uintmax_t hi) else { double d = XFLOAT_DATA (x); - if (0 <= d && d <= hi) + if (0 <= d && d < 1.0 + hi) { uintmax_t n = d; if (n == d) |