diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2015-02-07 17:36:44 +0100 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2015-02-07 17:36:44 +0100 |
commit | 7f42b6577a8dbc477c57bda5dee4da379e54877f (patch) | |
tree | f745a9a9738021b496d8c1653808fbff4e6abea8 | |
parent | aaaad6329a2c949dedc15465940c442ae9a2ec6b (diff) | |
download | vtcol-7f42b6577a8dbc477c57bda5dee4da379e54877f.tar.gz |
vtcol.rs: fix off-by-one in color expression parser
-rw-r--r-- | vtcol.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -250,7 +250,7 @@ rgb_of_hex_triplet let bytes = def.as_bytes(); let r : u8 = byte_of_hex!(bytes, 0); let g : u8 = byte_of_hex!(bytes, 2); - let b : u8 = byte_of_hex!(bytes, 3); + let b : u8 = byte_of_hex!(bytes, 4); (r, g, b) } |