summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2015-02-07 17:36:44 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2015-02-07 17:36:44 +0100
commit7f42b6577a8dbc477c57bda5dee4da379e54877f (patch)
treef745a9a9738021b496d8c1653808fbff4e6abea8
parentaaaad6329a2c949dedc15465940c442ae9a2ec6b (diff)
downloadvtcol-7f42b6577a8dbc477c57bda5dee4da379e54877f.tar.gz
vtcol.rs: fix off-by-one in color expression parser
-rw-r--r--vtcol.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/vtcol.rs b/vtcol.rs
index 7ce0b7f..6dbfac6 100644
--- a/vtcol.rs
+++ b/vtcol.rs
@@ -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)
}