aboutsummaryrefslogtreecommitdiffstats
path: root/src/category.c
diff options
context:
space:
mode:
authorPaul Eggert2011-04-10 09:44:27 -0700
committerPaul Eggert2011-04-10 09:44:27 -0700
commitb2ded58d7e0eb75f00071036d1c07bbd55313b60 (patch)
tree5546bb6d7214033a83d13ce87a15f65595f6ae74 /src/category.c
parent37f1c9309eb0e6b3bc3dda1ffa7f99410c22355d (diff)
parent12020a9e6dcfc2213e8bbb0fec259c1ed1202f30 (diff)
downloademacs-b2ded58d7e0eb75f00071036d1c07bbd55313b60.tar.gz
emacs-b2ded58d7e0eb75f00071036d1c07bbd55313b60.zip
Fix more problems found by GCC 4.6.0's static checks.
Diffstat (limited to 'src/category.c')
-rw-r--r--src/category.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/category.c b/src/category.c
index cc7ff88474f..bba030360c4 100644
--- a/src/category.c
+++ b/src/category.c
@@ -128,7 +128,7 @@ the current buffer's category table. */)
128 table = check_category_table (table); 128 table = check_category_table (table);
129 129
130 if (!NILP (CATEGORY_DOCSTRING (table, XFASTINT (category)))) 130 if (!NILP (CATEGORY_DOCSTRING (table, XFASTINT (category))))
131 error ("Category `%c' is already defined", XFASTINT (category)); 131 error ("Category `%c' is already defined", (int) XFASTINT (category));
132 if (!NILP (Vpurify_flag)) 132 if (!NILP (Vpurify_flag))
133 docstring = Fpurecopy (docstring); 133 docstring = Fpurecopy (docstring);
134 CATEGORY_DOCSTRING (table, XFASTINT (category)) = docstring; 134 CATEGORY_DOCSTRING (table, XFASTINT (category)) = docstring;
@@ -373,7 +373,7 @@ then delete CATEGORY from the category set instead of adding it. */)
373 table = check_category_table (table); 373 table = check_category_table (table);
374 374
375 if (NILP (CATEGORY_DOCSTRING (table, XFASTINT (category)))) 375 if (NILP (CATEGORY_DOCSTRING (table, XFASTINT (category))))
376 error ("Undefined category: %c", XFASTINT (category)); 376 error ("Undefined category: %c", (int) XFASTINT (category));
377 377
378 set_value = NILP (reset) ? Qt : Qnil; 378 set_value = NILP (reset) ? Qt : Qnil;
379 379