summaryrefslogtreecommitdiff
path: root/src/trivial/tri-2101010.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trivial/tri-2101010.c')
-rw-r--r--src/trivial/tri-2101010.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trivial/tri-2101010.c b/src/trivial/tri-2101010.c
index 817b260e..1945b29f 100644
--- a/src/trivial/tri-2101010.c
+++ b/src/trivial/tri-2101010.c
@@ -78,7 +78,7 @@ static void Key(unsigned char key, int x, int y)
}
#define i32to10(x) ((x) >= 0 ? (x & 0x1ff) : 1024-(abs((x))& 0x1ff))
-#define i32to2(x) ((x) >= 0 ? (x & 0x1) : 3-abs((x)))
+#define i32to2(x) ((x) >= 0 ? (x & 0x1) : 1-abs((x)))
static unsigned iconv(int x, int y, int z, int w)
{