From 0bded4e867c1db795130eb8d084bff3e5495c698 Mon Sep 17 00:00:00 2001 From: Hin-Tak Leung Date: Thu, 13 Jul 2023 18:30:05 +0100 Subject: [PATCH] rsvg-port.c: Correct usage of FT_Bool vs gboolean comparison `TRUE' in this context is from glib headers (glib-2.0/glib/gmacros.h) imported indirectly from rsvg headers. It should not be used for comparison with FT_Bool types. Other usages of `TRUE/FALSE' in this file is okay. Signed-off-by: Hin-Tak Leung --- src/rsvg-port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rsvg-port.c b/src/rsvg-port.c index ff5b164..959afe9 100644 --- a/src/rsvg-port.c +++ b/src/rsvg-port.c @@ -437,7 +437,7 @@ /* If a render call is to follow, just destroy the context for the */ /* recording surface since no more drawing will be done on it. */ /* However, keep the surface itself for use by the render hook. */ - if ( cache == TRUE ) + if ( cache ) { cairo_destroy( rec_cr ); goto CleanLibrsvg; -- 2.41.0