diff finch/libgnt/gntwm.c @ 17174:e5cc13b1e0ca

Fix a compiler warning by using a temporary variable for swapping.
author Richard Laager <rlaager@wiktel.com>
date Sat, 19 May 2007 08:12:31 +0000
parents 3c4280387259
children 8d3c28521112 43a55528ff26
line wrap: on
line diff
--- a/finch/libgnt/gntwm.c	Sat May 19 07:58:34 2007 +0000
+++ b/finch/libgnt/gntwm.c	Sat May 19 08:12:31 2007 +0000
@@ -697,7 +697,11 @@
 				if (bgp == -1)
 					bgp = COLOR_WHITE;
 				if (now & A_REVERSE)
-					fgp ^= bgp ^= fgp ^= bgp;  /* *wink* */
+				{
+					short tmp = fgp;
+					fgp = bgp;
+					bgp = tmp;
+				}
 				ret = color_content(fgp, &r, &g, &b);
 				fg.r = r; fg.b = b; fg.g = g;
 				ret = color_content(bgp, &r, &g, &b);