Internals: Fix some legacy casts. No functional change.
This commit is contained in:
parent
f8359adcc0
commit
de08655c5b
|
@ -294,7 +294,7 @@ inline VerilatedDeserialize& operator>>(VerilatedDeserialize& os, std::string& r
|
|||
uint32_t len = 0;
|
||||
os >> len;
|
||||
rhs.resize(len);
|
||||
// C cast is required below
|
||||
// NOLINTNEXTLINE(google-readability-casting)
|
||||
return os.read((void*)(rhs.data()), len);
|
||||
}
|
||||
VerilatedSerialize& operator<<(VerilatedSerialize& os, VerilatedContext* rhsp);
|
||||
|
|
|
@ -92,7 +92,7 @@ class VFlagChildDType {}; // Used by parser.y to select constructor that sets c
|
|||
#endif
|
||||
|
||||
// (V)erilator (N)ode deleted: Pointer to deleted AstNode (for assertions only)
|
||||
#define VN_DELETED(nodep) VL_UNLIKELY((uint64_t)(nodep) == 0x1)
|
||||
#define VN_DELETED(nodep) VL_UNLIKELY(reinterpret_cast<uint64_t>(nodep) == 0x1)
|
||||
|
||||
//######################################################################
|
||||
|
||||
|
|
|
@ -332,9 +332,9 @@ private:
|
|||
|
||||
for (; fileIt != list.m_files.end(); ++fileIt) {
|
||||
const uint64_t diffNow
|
||||
= std::abs((int64_t)(listIdealBucketScore - bucketScore));
|
||||
const uint64_t diffIfAdded = std::abs(
|
||||
(int64_t)(listIdealBucketScore - bucketScore - fileIt->m_score));
|
||||
= std::abs(static_cast<int64_t>(listIdealBucketScore - bucketScore));
|
||||
const uint64_t diffIfAdded = std::abs(static_cast<int64_t>(
|
||||
listIdealBucketScore - bucketScore - fileIt->m_score));
|
||||
if (bucketScore == 0 || fileIt->m_score == 0 || diffNow > diffIfAdded) {
|
||||
// Bucket score will be better with the file in it.
|
||||
bucketScore += fileIt->m_score;
|
||||
|
|
Loading…
Reference in New Issue