]> git.imager.perl.org - imager.git/blobdiff - tags.c
- improve the transform2() documentation
[imager.git] / tags.c
diff --git a/tags.c b/tags.c
index 951d1fe9d42d70c103a55273c8e8046948a24a4b..2579f26bb46b3a8dd82e4335dc47e64bb2da96ba 100644 (file)
--- a/tags.c
+++ b/tags.c
@@ -409,7 +409,7 @@ int i_tags_set_float2(i_img_tags *tags, char const *name, int code,
 
 Retrieve a tag specified by name or code as an integer.
 
-On success sets the i_color *I<value> to the color and returns true.
+On success sets the int *I<value> to the integer and returns true.
 
 On failure returns false.
 
@@ -444,7 +444,7 @@ static int parse_long(char *data, char **end, long *out) {
 
   errno = 0;
   result = strtol(data, &myend, 10);
-  if ((result == LONG_MIN || result == LONG_MAX) && errno == ERANGE
+  if (((result == LONG_MIN || result == LONG_MAX) && errno == ERANGE)
       || myend == data) {
     errno = savederr;
     return 0;