aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorCristian Greco <[email protected]>2011-05-24 19:29:55 +0200
committerCristian Greco <[email protected]>2011-05-24 19:29:55 +0200
commit53d1d7424fc435ad5846fb1d6483b7cb1b19fa3e (patch)
treee4b3c9a8e2b7839b9b49d99c73eb29ae470a0d13 /erts
parent5f7fa62cbfa18b88fc254fe362b11367177d2673 (diff)
downloadotp-53d1d7424fc435ad5846fb1d6483b7cb1b19fa3e.tar.gz
otp-53d1d7424fc435ad5846fb1d6483b7cb1b19fa3e.tar.bz2
otp-53d1d7424fc435ad5846fb1d6483b7cb1b19fa3e.zip
Fix use of logical operator && with constant operand instead of bitwise &.
Diffstat (limited to 'erts')
-rw-r--r--erts/lib_src/common/erl_printf_format.c4
1 files changed, 2 insertions, 2 deletions
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)