Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler should throw error if pad-right or terminator do not fit into byte #791

Closed
Mingun opened this issue Aug 1, 2020 · 0 comments
Closed

Comments

@Mingun
Copy link

Mingun commented Aug 1, 2020

terminator and pad-right specify single bytes, but compiler allows any integer value,which do not fit into byte.

Fox example, that KSY successfully compiles in web-IDE (both stable and devel):

meta:
  id: non_bytes
seq:
  - id: field
    pad-right: 0x200
    terminator: 0x300
    size: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants