diff options
author | Carl Worth <cworth@cworth.org> | 2006-10-12 14:21:55 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-10-12 14:21:55 -0700 |
commit | 78ad834d81b1fb2a49150ce224a5f25b5190b5a4 (patch) | |
tree | 43e4d6da27aaf9eea54d62ea4cba9525959ef189 /test/pattern-getters.c | |
parent | 20375d5cef560e7277635a0bdba3872f31cb4479 (diff) | |
download | cairo-78ad834d81b1fb2a49150ce224a5f25b5190b5a4.tar.gz |
Fix typo of , instead of || which was causing a test to be ignored
Thanks to a gcc warning for catching this one, (statement with
no effect, or similar).
Diffstat (limited to 'test/pattern-getters.c')
-rw-r--r-- | test/pattern-getters.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/pattern-getters.c b/test/pattern-getters.c index db3d3273a..fcfd0b98b 100644 --- a/test/pattern-getters.c +++ b/test/pattern-getters.c @@ -40,7 +40,7 @@ cairo_test_t test = { #define DOUBLE_EQUALS(a,b) (fabs((a)-(b)) < 0.00001) -int +static int double_buf_equal (double *a, double *b, int nc) { int i; @@ -65,9 +65,9 @@ draw (cairo_t *cr, int width, int height) status = cairo_pattern_get_rgba (pat, &r, &g, &b, &a); CHECK_SUCCESS; - if (!DOUBLE_EQUALS(r,0.2), - !DOUBLE_EQUALS(g,0.3), - !DOUBLE_EQUALS(b,0.4), + if (!DOUBLE_EQUALS(r,0.2) || + !DOUBLE_EQUALS(g,0.3) || + !DOUBLE_EQUALS(b,0.4) || !DOUBLE_EQUALS(a,0.5)) return CAIRO_TEST_FAILURE; |