diff options
author | Ingela Anderton Andin <[email protected]> | 2011-01-14 10:14:40 +0100 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2011-01-17 09:37:35 +0100 |
commit | 10c9b3f42e8c2be2d3cdd4f729c1901a79ead79c (patch) | |
tree | 9a7fd46c37b708a049f5338da71a609acf24704e /lib/stdlib | |
parent | 05f8664012999f97a80593acce6d3d79793b0634 (diff) | |
download | otp-10c9b3f42e8c2be2d3cdd4f729c1901a79ead79c.tar.gz otp-10c9b3f42e8c2be2d3cdd4f729c1901a79ead79c.tar.bz2 otp-10c9b3f42e8c2be2d3cdd4f729c1901a79ead79c.zip |
Removed use of deprecated function size
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/src/base64.erl | 6 | ||||
-rw-r--r-- | lib/stdlib/test/base64_SUITE.erl | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/stdlib/src/base64.erl b/lib/stdlib/src/base64.erl index 69d864051c..a14a72ac6d 100644 --- a/lib/stdlib/src/base64.erl +++ b/lib/stdlib/src/base64.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2007-2009. All Rights Reserved. +%% Copyright Ericsson AB 2007-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -217,12 +217,12 @@ mime_decode_binary(Result0, <<C:8,T/bits>>) -> Result0; 4 when Eq -> %% enforce at least one more '=' only ignoring illegals and spacing - Split = size(Result0), + Split = byte_size(Result0) - 1, <<Result:Split/bytes,_:4>> = Result0, Result; 2 -> %% remove 2 bits - Split = size(Result0), + Split = byte_size(Result0) - 1, <<Result:Split/bytes,_:2>> = Result0, Result end; diff --git a/lib/stdlib/test/base64_SUITE.erl b/lib/stdlib/test/base64_SUITE.erl index 3790e7d4c0..d8bb2dfb60 100644 --- a/lib/stdlib/test/base64_SUITE.erl +++ b/lib/stdlib/test/base64_SUITE.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2007-2009. All Rights Reserved. +%% Copyright Ericsson AB 2007-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -18,7 +18,6 @@ %% -module(base64_SUITE). --author('[email protected]'). -include("test_server.hrl"). -include("test_server_line.hrl"). |