Skip to content

Commit

Permalink
Update lib/nimble_parsec/compiler.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Dec 6, 2023
1 parent e66187f commit 355ae6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nimble_parsec/compiler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ defmodule NimbleParsec.Compiler do
defp bound_combinator({:bytes, count}, metadata) do
%{counter: counter, offset: offset} = metadata
{var, counter} = build_var(counter)
input = quote do: unquote(var)::binary-size(unquote(count))
input = quote do: unquote(var) :: binary - size(unquote(count))
offset = add_offset(offset, count)
metadata = %{metadata | counter: counter, offset: offset}
{:ok, [input], [], [var], metadata}
Expand Down

0 comments on commit 355ae6e

Please sign in to comment.