]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fframe_parameters): Fix Lisp_Object vs. int problems.
authorKarl Heuer <kwzh@gnu.org>
Mon, 19 Sep 1994 00:16:58 +0000 (00:16 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 19 Sep 1994 00:16:58 +0000 (00:16 +0000)
src/frame.c

index 07378f8d3d77d439c34c933f301379796be6c81b..8998dd8eb91e0bec10ae390089257e6fa27939a1 100644 (file)
@@ -1429,8 +1429,12 @@ If FRAME is omitted, return information on the currently selected frame.")
     x_report_frame_params (f, &alist);
   else
 #endif
-    /* This ought to be correct in f->param_alist for an X frame.  */
-    store_in_alist (&alist, Qmenu_bar_lines, FRAME_MENU_BAR_LINES (f));
+    {
+      /* This ought to be correct in f->param_alist for an X frame.  */
+      Lisp_Object lines;
+      XFASTINT (lines) = FRAME_MENU_BAR_LINES (f);
+      store_in_alist (&alist, Qmenu_bar_lines, lines);
+    }
   return alist;
 }