summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-22 02:00:29 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-22 02:28:28 -0400
commit2315f67a99049896456bbbde21838c0817954dee (patch)
tree1fd5b36c0ddd4f3ad93ba276d2dc95cbd32b17bb /pango/pango-attributes.c
parentfe3175fbdc5ec26a5123a5aa9383088165c05bf4 (diff)
downloadpango-2315f67a99049896456bbbde21838c0817954dee.tar.gz
attributes: Silence compiler warnings
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 15814e38..28dc4105 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -1456,7 +1456,7 @@ pango_attr_text_transform_new (PangoTextTransform transform)
PangoAttrInt *
pango_attribute_as_int (PangoAttribute *attr)
{
- switch (attr->klass->type)
+ switch ((int)attr->klass->type)
{
case PANGO_ATTR_STYLE:
case PANGO_ATTR_WEIGHT:
@@ -1500,7 +1500,7 @@ pango_attribute_as_int (PangoAttribute *attr)
PangoAttrFloat *
pango_attribute_as_float (PangoAttribute *attr)
{
- switch (attr->klass->type)
+ switch ((int)attr->klass->type)
{
case PANGO_ATTR_SCALE:
case PANGO_ATTR_LINE_HEIGHT:
@@ -1525,7 +1525,7 @@ pango_attribute_as_float (PangoAttribute *attr)
PangoAttrString *
pango_attribute_as_string (PangoAttribute *attr)
{
- switch (attr->klass->type)
+ switch ((int)attr->klass->type)
{
case PANGO_ATTR_FAMILY:
return (PangoAttrString *)attr;
@@ -1551,7 +1551,7 @@ pango_attribute_as_string (PangoAttribute *attr)
PangoAttrSize *
pango_attribute_as_size (PangoAttribute *attr)
{
- switch (attr->klass->type)
+ switch ((int)attr->klass->type)
{
case PANGO_ATTR_SIZE:
case PANGO_ATTR_ABSOLUTE_SIZE:
@@ -1578,7 +1578,7 @@ pango_attribute_as_size (PangoAttribute *attr)
PangoAttrColor *
pango_attribute_as_color (PangoAttribute *attr)
{
- switch (attr->klass->type)
+ switch ((int)attr->klass->type)
{
case PANGO_ATTR_FOREGROUND:
case PANGO_ATTR_BACKGROUND:
@@ -1608,7 +1608,7 @@ pango_attribute_as_color (PangoAttribute *attr)
PangoAttrFontDesc *
pango_attribute_as_font_desc (PangoAttribute *attr)
{
- switch (attr->klass->type)
+ switch ((int)attr->klass->type)
{
case PANGO_ATTR_FONT_DESC:
return (PangoAttrFontDesc *)attr;
@@ -1634,7 +1634,7 @@ pango_attribute_as_font_desc (PangoAttribute *attr)
PangoAttrFontFeatures *
pango_attribute_as_font_features (PangoAttribute *attr)
{
- switch (attr->klass->type)
+ switch ((int)attr->klass->type)
{
case PANGO_ATTR_FONT_FEATURES:
return (PangoAttrFontFeatures *)attr;
@@ -1660,7 +1660,7 @@ pango_attribute_as_font_features (PangoAttribute *attr)
PangoAttrLanguage *
pango_attribute_as_language (PangoAttribute *attr)
{
- switch (attr->klass->type)
+ switch ((int)attr->klass->type)
{
case PANGO_ATTR_LANGUAGE:
return (PangoAttrLanguage *)attr;
@@ -1686,7 +1686,7 @@ pango_attribute_as_language (PangoAttribute *attr)
PangoAttrShape *
pango_attribute_as_shape (PangoAttribute *attr)
{
- switch (attr->klass->type)
+ switch ((int)attr->klass->type)
{
case PANGO_ATTR_SHAPE:
return (PangoAttrShape *)attr;