From cf232703bd856cb3fd1eb71abd44f1aace2778fe Mon Sep 17 00:00:00 2001 From: Aaron Janse Date: Wed, 22 Apr 2020 19:37:26 -0700 Subject: [PATCH] don't use binary literal --- ecma48/parser.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ecma48/parser.go b/ecma48/parser.go index 663f24b..ced77e2 100644 --- a/ecma48/parser.go +++ b/ecma48/parser.go @@ -328,9 +328,9 @@ func (p *Parser) dispatchCsi() { p.out <- p.wrap(CursorMovement{ N: n, Direction: dir, - Shift: (seq[1]-1)&0b001 > 0, - Alt: (seq[1]-1)&0b010 > 0, - Ctrl: (seq[1]-1)&0b100 > 0, + Shift: (seq[1]-1)&1 > 0, + Alt: (seq[1]-1)&2 > 0, + Ctrl: (seq[1]-1)&4 > 0, }) } else { p.out <- p.wrap(CursorMovement{N: n, Direction: dir})