kaitai_struct icon indicating copy to clipboard operation
kaitai_struct copied to clipboard

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

Open Mingun opened this issue 3 years ago • 0 comments

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

Mingun avatar Aug 01 '20 15:08 Mingun