summaryrefslogtreecommitdiff
path: root/pango/pango-renderer.c
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-09-04 16:44:22 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2015-09-04 16:44:22 +0800
commit7402dfe837bde0cfc2bdb1ab30f1ce7e9822a8f7 (patch)
treeeae9e77acd7f6794966c2df0e8e6df2db0f8a8bc /pango/pango-renderer.c
parenta092a2997071e7f39660bbee3688869ce45b12fe (diff)
downloadpango-7402dfe837bde0cfc2bdb1ab30f1ce7e9822a8f7.tar.gz
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.
Diffstat (limited to 'pango/pango-renderer.c')
-rw-r--r--pango/pango-renderer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index a2f6ea45..9ccb7714 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];
}