The above assumes that INTTYPEBITS is less than 8, which I suppose could be put in there as well as a sanity check. > Not sure what you meant by "usual case". I just meant the case where json_int_t does not have a greater size than EMACS_INT.