Mercurial > pidgin.yaz
changeset 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 | b26a225b6fc6 |
children | 7175af86ec01 c02305ee715a 7884247def9b 840b0730b3c2 89616d769cd4 f2d8658b3a86 bb8ad59ae9c4 |
files | finch/libgnt/gntwm.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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);