diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-27 23:47:44 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-27 23:47:44 +0000 |
| commit | 95a8ed5f53bad3414ef2652f8b1e628e05c191c0 (patch) | |
| tree | aea9560d670f02457047d5bdc3c5b3ebd04b64ce /src | |
| parent | 0a42284a3d1eb6d9fe6dfbdec02a702d7f613ae1 (diff) | |
More tests.
Diffstat (limited to 'src')
| -rw-r--r-- | src/types.cc | 2 |
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")); } } |
