• Paul Eggert's avatar
    Go back to old way of checking json int range · 4bf3c949
    Paul Eggert authored
    Although the lisp.h macros really need improvement,
    INTEGER_TO_INT is not the right way to go about it, as it
    causes conversion from intmax_t to uintmax_t and back again,
    which can cause a signal if the value is negative.
    * src/lisp.h (INTEGER_TO_INT, ranged_integer_to_int)
    (ranged_integer_to_uint): Remove, reverting recent changes to
    this file.
    * src/json.c (lisp_to_json): Revert to previous code,
    as the change messes up with uintmax_t<->intmax_t conversion.
lisp.h 159 KB