Skip to content

A binary doesn't match even though it should #393

@mat-hek

Description

@mat-hek

The following code prints the binaries when run on the BEAM, and prints no_match on AtomVM

binary = <<1,2,3,4>>
skip = 1
size = 2

case binary do
  <<_::binary-size(skip), bin::binary-size(size), bin2::binary>> ->
    IO.inspect({bin, bin2})
  _ ->
    IO.inspect(:no_match)
end

Metadata

Metadata

Assignees

Labels

atom-vmBugs and features related to AtomVMbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions