(main): Update use of DECIMAL_DIGIT_ACCUMULATE.
authorJim Meyering <jim@meyering.net>
Fri, 25 Mar 2005 20:59:48 +0000 (20:59 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 25 Mar 2005 20:59:48 +0000 (20:59 +0000)
src/split.c
src/uniq.c

index 013a9f1..32f90a3 100644 (file)
@@ -481,7 +481,7 @@ main (int argc, char **argv)
          if (digits_optind != 0 && digits_optind != this_optind)
            n_units = 0;        /* More than one number given; ignore other. */
          digits_optind = this_optind;
-         if (DECIMAL_DIGIT_ACCUMULATE (n_units, c - '0', UINTMAX_MAX))
+         if (!DECIMAL_DIGIT_ACCUMULATE (n_units, c - '0', UINTMAX_MAX))
            {
              char buffer[INT_BUFSIZE_BOUND (uintmax_t)];
              error (EXIT_FAILURE, 0,
index c3421aa..736c281 100644 (file)
@@ -490,7 +490,7 @@ main (int argc, char **argv)
            if (skip_field_option_type == SFO_NEW)
              skip_fields = 0;
 
-           if (DECIMAL_DIGIT_ACCUMULATE (skip_fields, optc - '0', SIZE_MAX))
+           if (!DECIMAL_DIGIT_ACCUMULATE (skip_fields, optc - '0', SIZE_MAX))
              error (EXIT_FAILURE, 0, "%s",
                     _("invalid number of fields to skip"));
            skip_field_option_type = SFO_OBSOLETE;