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
This commit is contained in:
Edward Tomasz Napierala 2016-02-09 09:37:04 +00:00
parent d819236121
commit f30414423a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295427

View file

@ -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) {