summaryrefslogtreecommitdiff
path: root/src/sunfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sunfns.c')
-rw-r--r--src/sunfns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sunfns.c b/src/sunfns.c
index 6112fbae2b4..57c3e64a3a4 100644
--- a/src/sunfns.c
+++ b/src/sunfns.c
@@ -364,9 +364,9 @@ sun_item_create (Pair)
String = Fcar(Pair);
CHECK_STRING(String, 0);
Value = Fcdr(Pair);
- if(XTYPE(Value) == Lisp_Symbol)
+ if (SYMBOLP (Value))
Value = XSYMBOL(Value)->value;
- if(XTYPE(Value) == Lisp_Vector) {
+ if (VECTORP (Value)) {
submenu = sun_menu_create (Value);
menu_item = menu_create_item
(MENU_RELEASE, MENU_PULLRIGHT_ITEM, XSTRING(String)->data, submenu, 0);