From 7f42b6577a8dbc477c57bda5dee4da379e54877f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 7 Feb 2015 17:36:44 +0100 Subject: vtcol.rs: fix off-by-one in color expression parser --- vtcol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- cgit v1.2.3