mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Reduce code smell - explicit (#83)
"explicit" should be used on single-parameter constructors and conversion operators https://sonarcloud.io/organizations/pando-project/issues?resolved=false&rules=cpp%3AS1709 Signed-off-by: Bence Gabor Kis <kisbg@inf.u-szeged.hu>
This commit is contained in:
parent
29ac4731c9
commit
21cd2bd2d6
60 changed files with 101 additions and 101 deletions
|
|
@ -76,7 +76,7 @@ inline void decomposeDouble(double number, bool& sign, int32_t& exponent, uint64
|
|||
// This is used in converting the integer part of a number to a string.
|
||||
class BigInteger {
|
||||
public:
|
||||
BigInteger(double number)
|
||||
explicit BigInteger(double number)
|
||||
{
|
||||
m_values.reserve(36);
|
||||
ASSERT(std::isfinite(number) && !std::signbit(number));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue