Skip to content

Commit

Permalink
OTP-8340 A bug concerning bit comprehensions has been fixed in Cover.…
Browse files Browse the repository at this point in the history
… The

          bug was introduced in R13B03. (Thanks to Matthew Sackman.)
  • Loading branch information
uabboli authored and Erlang/OTP committed Dec 14, 2009
1 parent 0a49806 commit 420b28b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions lib/tools/doc/src/notes.xml
Expand Up @@ -30,6 +30,21 @@
</header>
<p>This document describes the changes made to the Tools application.</p>

<section><title>Tools 2.6.5.1</title>

<section><title>Fixed Bugs and Malfunctions</title>
<list>
<item>
<p>A bug concerning bit comprehensions has been fixed
in Cover. The bug was introduced in R13B03.
(Thanks to Matthew Sackman.)</p>
<p>Own Id: OTP-8340</p>
</item>
</list>
</section>

</section>

<section><title>Tools 2.6.5</title>

<section><title>Fixed Bugs and Malfunctions</title>
Expand Down
4 changes: 2 additions & 2 deletions lib/tools/src/cover.erl
Expand Up @@ -1685,8 +1685,8 @@ munge_expr({lc,Line,Expr,Qs}, Vars) ->
{MungedQs, Vars3} = munge_qualifiers(Qs, Vars2),
{{lc,Line,MungedExpr,MungedQs}, Vars3};
munge_expr({bc,Line,Expr,Qs}, Vars) ->
{bin,BLine,[{bin_element,EL,Val,Sz,TSL}]} = Expr,
Expr2 = {bin,BLine,[{bin_element,EL,?BLOCK1(Val),Sz,TSL}]},
{bin,BLine,[{bin_element,EL,Val,Sz,TSL}|Es]} = Expr,
Expr2 = {bin,BLine,[{bin_element,EL,?BLOCK1(Val),Sz,TSL}|Es]},
{MungedExpr,Vars2} = munge_expr(Expr2, Vars),
{MungedQs, Vars3} = munge_qualifiers(Qs, Vars2),
{{bc,Line,MungedExpr,MungedQs}, Vars3};
Expand Down
2 changes: 1 addition & 1 deletion lib/tools/vsn.mk
Expand Up @@ -16,4 +16,4 @@
#
# %CopyrightEnd%

TOOLS_VSN = 2.6.5
TOOLS_VSN = 2.6.5.1

0 comments on commit 420b28b

Please sign in to comment.