Pleroma.Helpers.QtFastStart: Dialzyer error

lib/pleroma/helpers/qt_fast_start.ex:129:improper_list_constr
List construction (cons) will produce an improper list, because its second argument is <<_::32>>.

lib/pleroma/helpers/qt_fast_start.ex:129:improper_list_constr
List construction (cons) will produce an improper list, because its second argument is <<_::64>>.
This commit is contained in:
Mark Felder 2024-01-26 20:57:46 -05:00
parent 6e0945354d
commit b2ab479488
1 changed files with 9 additions and 3 deletions

View File

@ -126,9 +126,15 @@ defp rewrite_entries(
<<pos::integer-big-size(unquote(size)), rest::bits>>,
acc
) do
rewrite_entries(unquote(size), offset, rest, [
acc | <<pos + offset::integer-big-size(unquote(size))>>
])
rewrite_entries(
unquote(size),
offset,
rest,
acc ++
[
<<pos + offset::integer-big-size(unquote(size))>>
]
)
end
end