diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-11-19 16:55:38 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-11-19 16:55:38 -0800 |
commit | 0b7433a6fbf4d55417e896ca02dd7da5f51014a1 (patch) | |
tree | 9abcc2200efbb5cf7d44124f1fb0b027982dde95 /packet/bmp.go | |
parent | 2b15188fe196bb2210ed4e24b776746469215318 (diff) |
bmp: use BMP_VERSION
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'packet/bmp.go')
-rw-r--r-- | packet/bmp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bmp.go b/packet/bmp.go index bc789c66..0b78b405 100644 --- a/packet/bmp.go +++ b/packet/bmp.go @@ -45,7 +45,7 @@ const ( func (h *BMPHeader) DecodeFromBytes(data []byte) error { h.Version = data[0] - if data[0] != 3 { + if data[0] != BMP_VERSION { return fmt.Errorf("error version") } h.Length = binary.BigEndian.Uint32(data[1:5]) |