improve EPS aliasing
diff --git a/coders/json.c b/coders/json.c
index 13a2928..1645912 100644
--- a/coders/json.c
+++ b/coders/json.c
@@ -321,7 +321,7 @@
register ssize_t
i;
- if (GetPixelReadMask(image,p) == 0)
+ if (GetPixelReadMask(image,p) <= (QuantumRange/2))
{
p+=GetPixelChannels(image);
continue;
diff --git a/coders/ps.c b/coders/ps.c
index 95834c3..5703227 100644
--- a/coders/ps.c
+++ b/coders/ps.c
@@ -633,7 +633,7 @@
datum=GetStringInfoDatum(profile);
for (i=0; (c=ProfileInteger(image,hex_digits)) != EOF; i++)
{
- if (i >= GetStringInfoLength(profile))
+ if (i >= (ssize_t) GetStringInfoLength(profile))
{
SetStringInfoLength(profile,(size_t) i << 1);
datum=GetStringInfoDatum(profile);
diff --git a/coders/wmf.c b/coders/wmf.c
index e591337..fa7f5bb 100644
--- a/coders/wmf.c
+++ b/coders/wmf.c
@@ -819,7 +819,7 @@
ddata->draw_info=(DrawInfo *)NULL;
}
if (WMF_MAGICK_GetFontData(API)->ps_name)
- WMF_MAGICK_GetFontData(API)->ps_name=RelinquishMagickMemory(
+ WMF_MAGICK_GetFontData(API)->ps_name=(char *) RelinquishMagickMemory(
WMF_MAGICK_GetFontData(API)->ps_name);
}