summaryrefslogtreecommitdiff
path: root/src/xfaces.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-10-09 17:53:13 +0300
committerEli Zaretskii <eliz@gnu.org>2013-10-09 17:53:13 +0300
commit051277bf8543f2d5b4c1d0a062d7bd4bbd847918 (patch)
tree02e94972bcdd070ab3f4177889aee9dba357af4f /src/xfaces.c
parent95273451b46b6b014da891128e969c68fc77ffd8 (diff)
downloademacs-051277bf8543f2d5b4c1d0a062d7bd4bbd847918.tar.gz
Fix bug #15565 with assertion violations in x_free_gc.
src/xfaces.c (x_free_gc) [HAVE_X_WINDOWS, HAVE_NTGUI]: Don't pass expressions with side effects to eassert.
Diffstat (limited to 'src/xfaces.c')
-rw-r--r--src/xfaces.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 8d78a28eab1..7e83972955c 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -603,7 +603,7 @@ static void
x_free_gc (struct frame *f, GC gc)
{
eassert (input_blocked_p ());
- IF_DEBUG (eassert (--ngcs >= 0));
+ IF_DEBUG ((--ngcs, eassert (ngcs >= 0)));
XFreeGC (FRAME_X_DISPLAY (f), gc);
}
@@ -629,7 +629,7 @@ x_create_gc (struct frame *f, unsigned long mask, XGCValues *xgcv)
static void
x_free_gc (struct frame *f, GC gc)
{
- IF_DEBUG (eassert (--ngcs >= 0));
+ IF_DEBUG ((--ngcs, eassert (ngcs >= 0)));
xfree (gc);
}