Generalize common compile-time constants.
[bpt/emacs.git] / src / xfont.c
index 1ebac61..e3e2eb1 100644 (file)
@@ -464,11 +464,11 @@ xfont_list_pattern (Display *display, const char *pattern,
              continue;
            }
          if (memcmp (props, aref_addr (entity, FONT_FOUNDRY_INDEX),
-                     sizeof (Lisp_Object) * 7)
+                     word_size * 7)
              || ! EQ (AREF (entity, FONT_SPACING_INDEX), props[7]))
            {
              memcpy (props, aref_addr (entity, FONT_FOUNDRY_INDEX),
-                     sizeof (Lisp_Object) * 7);
+                     word_size * 7);
              props[7] = AREF (entity, FONT_SPACING_INDEX);
              scripts = xfont_supported_scripts (display, indices[i],
                                                 xfont_scratch_props, encoding);