[cairo-commit] util/cairo-trace

Chris Wilson ickle at kemper.freedesktop.org
Fri Mar 18 06:23:48 PDT 2011


 util/cairo-trace/trace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit df1dd838809ed64b06595541d237e0f6bb6d23cb
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Fri Mar 18 13:22:24 2011 +0000

    trace: Fix hint_style/hint_metrics typo
    
    Compiler warning saves the day!
    
    trace.c: In function ‘_emit_font_options’:
    trace.c:2973:20: warning: comparison between ‘cairo_hint_style_t’ and
    ‘enum _cairo_hint_metrics’
    
    A genuine bug, thanks gcc!
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c
index b930506..ff2bc81 100644
--- a/util/cairo-trace/trace.c
+++ b/util/cairo-trace/trace.c
@@ -2970,7 +2970,7 @@ _emit_font_options (const cairo_font_options_t *options)
     }
 
     hint_metrics = DLCALL (cairo_font_options_get_hint_metrics, options);
-    if (hint_style != CAIRO_HINT_METRICS_DEFAULT) {
+    if (hint_metrics != CAIRO_HINT_METRICS_DEFAULT) {
 	_trace_printf (" /hint-metrics //%s",
 		       _hint_metrics_to_string (hint_metrics));
     }


More information about the cairo-commit mailing list