aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/icode/hipe_icode_range.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-11-22 12:03:19 +0100
committerBjörn Gustavsson <[email protected]>2010-11-22 12:03:19 +0100
commit4819bd39799777427965963625f034e30673b034 (patch)
tree1d868d35eb94ebdd30c84c90df5baa7c14164fd4 /lib/hipe/icode/hipe_icode_range.erl
parentf555bf55aabd9b80f48daaf1f8ae041c8aa06f9e (diff)
parent6083a1a9e553eac8a0b33697964fadfd17d302ca (diff)
downloadotp-4819bd39799777427965963625f034e30673b034.tar.gz
otp-4819bd39799777427965963625f034e30673b034.tar.bz2
otp-4819bd39799777427965963625f034e30673b034.zip
Merge branch 'ks/hipe-patches' into dev
* ks/hipe-patches: hipe: Update types and specs
Diffstat (limited to 'lib/hipe/icode/hipe_icode_range.erl')
-rw-r--r--lib/hipe/icode/hipe_icode_range.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hipe/icode/hipe_icode_range.erl b/lib/hipe/icode/hipe_icode_range.erl
index bcc857acf4..c7e6a451af 100644
--- a/lib/hipe/icode/hipe_icode_range.erl
+++ b/lib/hipe/icode/hipe_icode_range.erl
@@ -843,7 +843,7 @@ compare_with_integer(N, OldVarRange) ->
%%== Ranges ==================================================================
--spec pp_ann(#ann{} | erl_types:erl_type()) -> [string()].
+-spec pp_ann(#ann{} | erl_types:erl_type()) -> string().
pp_ann(#ann{range=#range{range=R, other=false}}) ->
pp_range(R);
@@ -1365,7 +1365,7 @@ range_bnot(Range) ->
Minus_one = range_init({-1,-1}, false),
range_add(range_mult(Range, Minus_one), Minus_one).
--spec width(range_rep() | integer()) -> 'pos_inf' | non_neg_integer().
+-spec width(range_rep() | inf_integer()) -> 'pos_inf' | non_neg_integer().
width({Min, Max}) -> inf_max([width(Min), width(Max)]);
width(pos_inf) -> pos_inf;