]> code.delx.au - gnu-emacs/blobdiff - src/category.h
Merge from trunk.
[gnu-emacs] / src / category.h
index 737198cc9649682161ca1894107c2c04a5b25363..423270100b3db58c5ca839c968e8a6b572989bcb 100644 (file)
@@ -53,8 +53,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    The second extra slot is a version number of the category table.
    But, for the moment, we are not using this slot.  */
 
-#define CATEGORYP(x) \
-  (INTEGERP ((x)) && XFASTINT ((x)) >= 0x20 && XFASTINT ((x)) <= 0x7E)
+#define CATEGORYP(x) RANGED_INTEGERP (0x20, x, 0x7E)
 
 #define CHECK_CATEGORY(x) \
   CHECK_TYPE (CATEGORYP (x), Qcategoryp, x)