aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1rtt_ber.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-16 08:21:22 +0100
committerBjörn Gustavsson <[email protected]>2013-02-16 08:58:17 +0100
commitae4af895501c5113fafc3c416988ce042ee09961 (patch)
tree71dd568907078b1bc6ad16aad7eb8653ca78c386 /lib/asn1/src/asn1rtt_ber.erl
parentd3597d31c3b26a6269ed37b7856425a1d0641a90 (diff)
downloadotp-ae4af895501c5113fafc3c416988ce042ee09961.tar.gz
otp-ae4af895501c5113fafc3c416988ce042ee09961.tar.bz2
otp-ae4af895501c5113fafc3c416988ce042ee09961.zip
Eliminate use of obsolete size/1 in generated code
It is recommended to use byte_size/1 or tuple_size/1 instead of size/1.
Diffstat (limited to 'lib/asn1/src/asn1rtt_ber.erl')
-rw-r--r--lib/asn1/src/asn1rtt_ber.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1rtt_ber.erl b/lib/asn1/src/asn1rtt_ber.erl
index 88292aca99..5fbf116747 100644
--- a/lib/asn1/src/asn1rtt_ber.erl
+++ b/lib/asn1/src/asn1rtt_ber.erl
@@ -868,7 +868,7 @@ remove_unused_then_dotag(TagIn,Unused,BinBits) ->
encode_tags(TagIn, <<0>>, 1);
0 ->
Bin = <<Unused,BinBits/binary>>,
- encode_tags(TagIn,Bin,size(Bin));
+ encode_tags(TagIn, Bin, byte_size(Bin));
Num ->
N = byte_size(BinBits)-1,
<<BBits:N/binary,LastByte>> = BinBits,