]> git.eshelyaron.com Git - emacs.git/commitdiff
Port recent changes to older GCC
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Aug 2018 11:38:44 +0000 (04:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 14 Aug 2018 11:39:05 +0000 (04:39 -0700)
Problem reported by Glenn Morris in:
https://lists.gnu.org/r/emacs-devel/2018-08/msg00446.html
* src/lisp.h (make_pointer_integer_unsafe):
Port to older GCC.

src/lisp.h

index 18d53537ccacc89362d331e6d6dc25ee2c607be3..da93efdd934ce9df2d75d6179bcd404342dae47c 100644 (file)
@@ -1191,7 +1191,8 @@ XFIXNUMPTR (Lisp_Object a)
 INLINE Lisp_Object
 make_pointer_integer_unsafe (void *p)
 {
-  return TAG_PTR (Lisp_Int0, p);
+  Lisp_Object a = TAG_PTR (Lisp_Int0, p);
+  return a;
 }
 
 INLINE Lisp_Object