From: David Miller <davem@davemloft.net>
To: gustavo@embeddedor.com
Cc: 3chas3@gmail.com, linux-atm-general@lists.sourceforge.net,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
garsilva@embeddedor.com
Subject: Re: [PATCH] atm: he: use 64-bit arithmetic instead of 32-bit
Date: Thu, 08 Feb 2018 15:05:36 -0500 (EST) [thread overview]
Message-ID: <20180208.150536.1732289776944691235.davem@davemloft.net> (raw)
In-Reply-To: <20180207161729.GA10329@embeddedgus>
From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Date: Wed, 7 Feb 2018 10:17:29 -0600
> Add suffix ULL to constants 272, 204, 136 and 68 in order to give the
> compiler complete information about the proper arithmetic to use.
> Notice that these constants are used in contexts that expect
> expressions of type unsigned long long (64 bits, unsigned).
>
> The following expressions are currently being evaluated using 32-bit
> arithmetic:
>
> 272 * mult
> 204 * mult
> 136 * mult
> 68 * mult
>
> Addresses-Coverity-ID: 201058
> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Applied, thanks.
prev parent reply other threads:[~2018-02-08 20:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-07 16:17 [PATCH] atm: he: use 64-bit arithmetic instead of 32-bit Gustavo A. R. Silva
2018-02-08 20:05 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180208.150536.1732289776944691235.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=3chas3@gmail.com \
--cc=garsilva@embeddedor.com \
--cc=gustavo@embeddedor.com \
--cc=linux-atm-general@lists.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).