]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/lisp.h (INTEGER_TO_INT): Fix bug.
authorPhilipp Stephani <phst@google.com>
Mon, 22 Apr 2019 16:58:51 +0000 (18:58 +0200)
committerPhilipp Stephani <phst@google.com>
Mon, 22 Apr 2019 17:04:54 +0000 (19:04 +0200)
src/lisp.h

index 8510ad72564b526ff14b4f3f87b215cbd7e3a25d..ee5a8481ae8e69a154b63217c154bd72270b6b7a 100644 (file)
@@ -2645,7 +2645,7 @@ make_uint (uintmax_t n)
 #define INTEGER_TO_INT(num, type)                                              \
   (TYPE_SIGNED (type)                                                          \
      ? ranged_integer_to_int ((num), TYPE_MINIMUM (type), TYPE_MAXIMUM (type)) \
-     : ranged_integer_to_uint ((num), TYPE_MINIMUM (type)))
+     : ranged_integer_to_uint ((num), TYPE_MAXIMUM (type)))
 
 \f
 /* Forwarding pointer to an int variable.