Fix size/1 warnings

This commit is contained in:
Eric Meadows-Jönsson
2014-06-20 14:24:36 +02:00
parent c909267077
commit cbb7c545e0
4 changed files with 7 additions and 7 deletions
@@ -167,9 +167,9 @@ bar """
test :bitsyntax_translation do
refb = "sample"
sec_data = "another"
<< size(refb) :: [size(1), big, signed, integer, unit(8)],
<< byte_size(refb) :: [size(1), big, signed, integer, unit(8)],
refb :: binary,
size(sec_data) :: [size(1), big, signed, integer, unit(16)],
byte_size(sec_data) :: [size(1), big, signed, integer, unit(16)],
sec_data :: binary >>
end
@@ -193,9 +193,9 @@ bar """
test :bitsyntax_macro do
refb = "sample"
sec_data = "another"
<< size(refb) :: refb_spec,
<< byte_size(refb) :: refb_spec,
refb :: binary,
size(sec_data) :: [size(1), signed_16],
byte_size(sec_data) :: [size(1), signed_16],
sec_data :: binary >>
end
end
+1 -1
View File
@@ -36,7 +36,7 @@ defmodule Mix.Tasks.Compile do
end
max = Enum.reduce docs, 0, fn({task, _}, acc) ->
max(size(task), acc)
max(byte_size(task), acc)
end
sorted = Enum.sort(docs)
+1 -1
View File
@@ -47,7 +47,7 @@ defmodule Mix.Tasks.Help do
end
max = Enum.reduce docs, 0, fn({task, _}, acc) ->
max(size(task), acc)
max(byte_size(task), acc)
end
display_default_task_doc(max)
+1 -1
View File
@@ -17,7 +17,7 @@ defmodule Mix.Tasks.Local do
end
max = Enum.reduce docs, 0, fn({task, _}, acc) ->
max(size(task), acc)
max(byte_size(task), acc)
end
sorted = Enum.sort(docs)