summaryrefslogtreecommitdiff
path: root/src/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.h')
-rw-r--r--src/font.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/font.h b/src/font.h
index a469b20e4f4..53e3fc21a3d 100644
--- a/src/font.h
+++ b/src/font.h
@@ -424,7 +424,7 @@ FONTP (Lisp_Object x)
INLINE bool
FONT_SPEC_P (Lisp_Object x)
{
- return FONTP (x) && (ASIZE (x) & PSEUDOVECTOR_SIZE_MASK) == FONT_SPEC_MAX;
+ return FONTP (x) && PVSIZE (x) == FONT_SPEC_MAX;
}
/* Like FONT_SPEC_P, but can be used in the garbage collector. */
@@ -438,7 +438,7 @@ GC_FONT_SPEC_P (Lisp_Object x)
INLINE bool
FONT_ENTITY_P (Lisp_Object x)
{
- return FONTP (x) && (ASIZE (x) & PSEUDOVECTOR_SIZE_MASK) == FONT_ENTITY_MAX;
+ return FONTP (x) && PVSIZE (x) == FONT_ENTITY_MAX;
}
/* Like FONT_ENTITY_P, but can be used in the garbage collector. */
@@ -452,7 +452,7 @@ GC_FONT_ENTITY_P (Lisp_Object x)
INLINE bool
FONT_OBJECT_P (Lisp_Object x)
{
- return FONTP (x) && (ASIZE (x) & PSEUDOVECTOR_SIZE_MASK) == FONT_OBJECT_MAX;
+ return FONTP (x) && PVSIZE (x) == FONT_OBJECT_MAX;
}
/* Like FONT_OBJECT_P, but can be used in the garbage collector. */