clisp/clisp-2.39-clx.dif
OBS User mrdocs d5a36a868b Accepting request 143477 from home:toganm:branches:devel:languages:misc
- Fix build with glibc 2.17 (clisp-glibc-fix.patch)
  * rebase patches to -p1 as stated in the patching guidelines
  * update to libsegsev-2.10

OBS-URL: https://build.opensuse.org/request/show/143477
OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/clisp?expand=0&rev=36
2012-11-28 21:22:46 +00:00

27 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
modules/clx/new-clx/clx.f | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--- a/modules/clx/new-clx/clx.f
+++ b/modules/clx/new-clx/clx.f
@@ -1721,7 +1721,8 @@ static void general_lookup (object type)
DEFUN(XLIB:##L##-ID,xxx) \
{ VALUES1(make_uint29((XID)get_##c (popSTACK()))); } \
DEFUN(XLIB:##L##-EQUAL,xxx yyy) \
- { VALUES_IF(get_##c (popSTACK()) == get_##c (popSTACK())); } \
+ { object _last = popSTACK(); \
+ VALUES_IF(get_##c (popSTACK()) == get_##c (_last)); } \
DEFUN(XLIB:LOOKUP-##L,display xxx) \
{ general_lookup (`XLIB::##L##`); }
@@ -1738,7 +1739,8 @@ static void general_lookup (object type)
DEFUN(XLIB:##L##-P,xxx) \
{ VALUES_IF(c##_p (popSTACK())); } \
DEFUN(XLIB:##L##-EQUAL,xxx yyy) \
- { VALUES_IF(get_##c (popSTACK()) == get_##c (popSTACK())); }
+ { object _last = popSTACK(); \
+ VALUES_IF(get_##c (popSTACK()) == get_##c (_last)); }
/* -----------------------------------------------------------------------