Skip to content

Commit

Permalink
bmp: use _sizeof instead of magic constant
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Jul 2, 2021
1 parent 773e91e commit bc2de76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion image/bmp.ksy
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ types:
type: u4
- id: header
-orig-id: bmciHeader
size: len_header - 4
size: len_header - len_header._sizeof
type: bitmap_header(len_header)
- id: color_mask
type: color_mask(header.bitmap_info_ext.compression == compressions::alpha_bitfields)
Expand Down

0 comments on commit bc2de76

Please sign in to comment.