From 4acfdbc12acedac6a06ab1c0986d1935e97f2ac5 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sun, 4 Jul 2010 13:27:50 +0000 Subject: chessbox: fix 'i = i++', based on gnuchess4.0-pl80 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27278 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/chessbox/gnuchess.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/plugins/chessbox/gnuchess.c b/apps/plugins/chessbox/gnuchess.c index 5c30c6a6df..aaa67a4cec 100644 --- a/apps/plugins/chessbox/gnuchess.c +++ b/apps/plugins/chessbox/gnuchess.c @@ -2145,7 +2145,7 @@ short j,j1,j2,piece,i,sq,*PL; while (!(m & 0x88)) { u = unmap[m]; - a[u] = ++a[u] | c; + a[u] = (a[u]+1) | c; if (color[u] == neutral) m += d; else break; } @@ -2155,7 +2155,7 @@ short j,j1,j2,piece,i,sq,*PL; if (!((m = m0+Dir[j]) & 0x88)) { u = unmap[m]; - a[u] = ++a[u] | c; + a[u] = (a[u]+1) | c; } } } -- cgit v1.2.3