From 53d1d7424fc435ad5846fb1d6483b7cb1b19fa3e Mon Sep 17 00:00:00 2001 From: Cristian Greco Date: Tue, 24 May 2011 19:29:55 +0200 Subject: Fix use of logical operator && with constant operand instead of bitwise &. --- erts/lib_src/common/erl_printf_format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'erts/lib_src/common') diff --git a/erts/lib_src/common/erl_printf_format.c b/erts/lib_src/common/erl_printf_format.c index fba3fd723c..473791dce4 100644 --- a/erts/lib_src/common/erl_printf_format.c +++ b/erts/lib_src/common/erl_printf_format.c @@ -388,7 +388,7 @@ static int fmt_double(fmtfn_t fn,void*arg,double val, max_size++; if (precision) max_size += precision; - else if (fmt && FMTF_alt) + else if (fmt & FMTF_alt) max_size++; break; case FMTC_E: @@ -402,7 +402,7 @@ static int fmt_double(fmtfn_t fn,void*arg,double val, max_size += 4; if (precision) max_size += precision; - else if (fmt && FMTF_alt) + else if (fmt & FMTF_alt) max_size++; aexp = exp >= 0 ? exp : -exp; if (aexp < 100) -- cgit v1.2.3