From abb9d4c3aa44d6467de40031d346ab1def1a9352 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sun, 20 Jan 2019 17:57:18 +1100 Subject: [PATCH] colour: use view::consume with unsigned types --- colour.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colour.cpp b/colour.cpp index 10586b9f..ee35eebe 100644 --- a/colour.cpp +++ b/colour.cpp @@ -36,7 +36,7 @@ parse_hex (cruft::view &str) uint8_t g = cruft::ascii::from_hex (str[3]) << 4u | cruft::ascii::from_hex (str[4]); uint8_t b = cruft::ascii::from_hex (str[5]) << 4u | cruft::ascii::from_hex (str[6]); - str = str.consume (7); + str = str.consume (7u); return cruft::srgba<4,uint8_t> { r, g, b, 255 }.template cast (); }