From 42815b21790f57685c5eb59f190f452005d5ee7d Mon Sep 17 00:00:00 2001 From: Lawrence Mitchell Date: Tue, 14 Nov 2017 13:53:04 +0000 Subject: [PATCH] Fix BitwiseAnd stringifier (&, not ^) --- pymbolic/mapper/stringifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymbolic/mapper/stringifier.py b/pymbolic/mapper/stringifier.py index 0e5ab18..6e1519e 100644 --- a/pymbolic/mapper/stringifier.py +++ b/pymbolic/mapper/stringifier.py @@ -257,7 +257,7 @@ class StringifyMapper(pymbolic.mapper.Mapper): def map_bitwise_and(self, expr, enclosing_prec, *args, **kwargs): return self.parenthesize_if_needed( self.join_rec( - " ^ ", expr.children, PREC_BITWISE_AND, *args, **kwargs), + " & ", expr.children, PREC_BITWISE_AND, *args, **kwargs), enclosing_prec, PREC_BITWISE_AND) def map_comparison(self, expr, enclosing_prec, *args, **kwargs): -- GitLab