[pango] pango/pango-renderer.c: Fix Build
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] pango/pango-renderer.c: Fix Build
- Date: Fri, 4 Sep 2015 08:44:31 +0000 (UTC)
commit 7402dfe837bde0cfc2bdb1ab30f1ce7e9822a8f7
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Sep 4 16:44:22 2015 +0800
pango/pango-renderer.c: Fix Build
Some compilers insist on using a number for a guint16 return type, and does
not like using NULL in place of 0, so fix this.
pango/pango-renderer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index a2f6ea4..9ccb771 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -1249,8 +1249,8 @@ guint16
pango_renderer_get_alpha (PangoRenderer *renderer,
PangoRenderPart part)
{
- g_return_val_if_fail (PANGO_IS_RENDERER_FAST (renderer), NULL);
- g_return_val_if_fail (IS_VALID_PART (part), NULL);
+ g_return_val_if_fail (PANGO_IS_RENDERER_FAST (renderer), 0);
+ g_return_val_if_fail (IS_VALID_PART (part), 0);
return renderer->priv->alpha[part];
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]