mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
fix compiler exception
This commit is contained in:
+1
-1
@@ -1147,7 +1147,7 @@ static void inline FilenameToTitle(const char *filename,char *title,
|
||||
/*
|
||||
If parentheses remain unbalanced, close them.
|
||||
*/
|
||||
while ((depth > 0) && ((offset+1) < extent)) {
|
||||
while ((depth > 0) && ((offset+1) < (ssize_t) extent)) {
|
||||
title[offset++]=')';
|
||||
depth--;
|
||||
}
|
||||
|
||||
+1
-1
@@ -286,7 +286,7 @@ static void inline FilenameToTitle(const char *filename,char *title,
|
||||
/*
|
||||
If parentheses remain unbalanced, close them.
|
||||
*/
|
||||
while ((depth > 0) && ((offset+1) < extent)) {
|
||||
while ((depth > 0) && ((offset+1) < (ssize_t) extent)) {
|
||||
title[offset++]=')';
|
||||
depth--;
|
||||
}
|
||||
|
||||
+1
-1
@@ -264,7 +264,7 @@ static void inline FilenameToTitle(const char *filename,char *title,
|
||||
/*
|
||||
If parentheses remain unbalanced, close them.
|
||||
*/
|
||||
while ((depth > 0) && ((offset+1) < extent)) {
|
||||
while ((depth > 0) && ((offset+1) < (ssize_t) extent)) {
|
||||
title[offset++]=')';
|
||||
depth--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user