From f4433aced433d91a82ca358ed2106aec09275415 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 10 Mar 2018 16:58:32 -0500 Subject: [PATCH] ... --- MagickCore/type.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MagickCore/type.c b/MagickCore/type.c index 2cedba816..21ebadb21 100644 --- a/MagickCore/type.c +++ b/MagickCore/type.c @@ -367,7 +367,7 @@ MagickExport const TypeInfo *GetTypeInfoByFamily(const char *family, (void) GetTypeInfo("*",exception); if (type_cache == (SplayTreeInfo *) NULL) return((TypeInfo *) NULL); - font_weight=weight == 0 ? 400 : weight; + font_weight=(size_t) (weight == 0 ? 400 : weight); LockSemaphoreInfo(type_semaphore); ResetSplayTreeIterator(type_cache); type_info=(const TypeInfo *) NULL; @@ -1309,7 +1309,7 @@ static MagickBooleanType LoadTypeCache(SplayTreeInfo *cache,const char *xml, weight=ParseCommandOption(MagickWeightOptions,MagickFalse,token); if (weight == -1) - weight=StringToUnsignedLong(token); + weight=(ssize_t) StringToUnsignedLong(token); type_info->weight=(size_t) weight; break; } -- 2.40.0