From b75b0a6d4dbdffd1346c9982a81377a4d95ce8db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 11 Aug 2016 11:53:05 +0200 Subject: Use integer_to_binary when possible --- test/http_SUITE.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl index 1b39feb..f0670a9 100644 --- a/test/http_SUITE.erl +++ b/test/http_SUITE.erl @@ -945,7 +945,7 @@ do_body_to_chunks(ChunkSize, Body, Acc) -> false -> ChunkSize end, << Chunk:ChunkSize2/binary, Rest/binary >> = Body, - ChunkSizeBin = list_to_binary(integer_to_list(ChunkSize2, 16)), + ChunkSizeBin = integer_to_binary(ChunkSize2, 16), do_body_to_chunks(ChunkSize, Rest, [<< ChunkSizeBin/binary, "\r\n", Chunk/binary, "\r\n" >>|Acc]). -- cgit v1.2.3