aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbusbind.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbusbind.c')
-rw-r--r--src/dbusbind.c4
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)
526 else 526 else
527 { 527 {
528 double d = XFLOAT_DATA (x); 528 double d = XFLOAT_DATA (x);
529 if (lo <= d && d <= hi) 529 if (lo <= d && d < 1.0 + hi)
530 { 530 {
531 intmax_t n = d; 531 intmax_t n = d;
532 if (n == d) 532 if (n == d)
@@ -554,7 +554,7 @@ xd_extract_unsigned (Lisp_Object x, uintmax_t hi)
554 else 554 else
555 { 555 {
556 double d = XFLOAT_DATA (x); 556 double d = XFLOAT_DATA (x);
557 if (0 <= d && d <= hi) 557 if (0 <= d && d < 1.0 + hi)
558 { 558 {
559 uintmax_t n = d; 559 uintmax_t n = d;
560 if (n == d) 560 if (n == d)