Author: trasz
Date: Tue Feb  9 09:37:04 2016
New Revision: 295427
URL: https://svnweb.freebsd.org/changeset/base/295427

Log:
  Use a proper type for return value of postfix_to_mult(); the way it's
  being used wouldn't work if the value returned didn't fit in intmax_t.
  
  Submitted by: bde@
  MFC after:    1 month
  Sponsored by: The FreeBSD Foundation

Modified:
  head/bin/dd/args.c

Modified: head/bin/dd/args.c
==============================================================================
--- head/bin/dd/args.c  Tue Feb  9 09:32:10 2016        (r295426)
+++ head/bin/dd/args.c  Tue Feb  9 09:37:04 2016        (r295427)
@@ -360,10 +360,10 @@ c_conv(const void *a, const void *b)
            ((const struct conv *)b)->name));
 }
 
-static uintmax_t
+static intmax_t
 postfix_to_mult(const char expr)
 {
-       uintmax_t mult;
+       intmax_t mult;
 
        mult = 0;
        switch (expr) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to