summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-27 23:47:44 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-27 23:47:44 +0000
commit95a8ed5f53bad3414ef2652f8b1e628e05c191c0 (patch)
treeaea9560d670f02457047d5bdc3c5b3ebd04b64ce /src
parent0a42284a3d1eb6d9fe6dfbdec02a702d7f613ae1 (diff)
More tests.
Diffstat (limited to 'src')
-rw-r--r--src/types.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.cc b/src/types.cc
index c97fb7b4..c519a03d 100644
--- a/src/types.cc
+++ b/src/types.cc
@@ -82,7 +82,7 @@ Colour::Colour (int r_, int g_, int b_)
Colour::Colour (string argb_hex)
{
int alpha;
- if (sscanf (argb_hex.c_str(), "%2x%2x%2x%2x", &alpha, &r, &g, &b) < 4) {
+ if (sscanf (argb_hex.c_str(), "%2x%2x%2x%2x", &alpha, &r, &g, &b) != 4) {
boost::throw_exception (XMLError ("could not parse colour string"));
}
}