commit | 338f0889100c635cc8e2281e66b2d2e34d3b37e8 | [log] [tgz] |
---|---|---|
author | Cristy <urban-warrior@imagemagick.org> | Sat Dec 10 12:12:35 2016 -0500 |
committer | Cristy <urban-warrior@imagemagick.org> | Sat Dec 10 12:12:35 2016 -0500 |
tree | 681117ba31ff36029da2b8c027711691a2d4c820 | |
parent | 78f136903b81eaeb4b700ad4cfbf130b5bb3d52d [diff] [blame] |
Ensure source compiles with pedantic C++ compiler
diff --git a/coders/json.c b/coders/json.c index d1460b8..ab32137 100644 --- a/coders/json.c +++ b/coders/json.c
@@ -653,7 +653,7 @@ if (j < (MaximumNumberOfPerceptualHashes-1)) n+=FormatLocaleFile(file,",\n"); } - if (i < (GetPixelChannels(image)-1)) + if (i < (ssize_t) (GetPixelChannels(image)-1)) n+=FormatLocaleFile(file,"\n },\n"); } n+=FormatLocaleFile(file,"\n }\n");