Date: Tue, 9 Feb 2016 09:37:04 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r295427 - head/bin/dd Message-ID: <201602090937.u199b4G8058215@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602090937.u199b4G8058215>