We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b18d860 commit 73c95b5Copy full SHA for 73c95b5
1 file changed
lib/check64bit.cpp
@@ -45,7 +45,7 @@ static bool is32BitIntegerReturn(const Function* func, const Settings* settings)
45
if (settings->platform.sizeof_pointer != 8)
46
return false;
47
const ValueType* vt = func->arg->valueType();
48
- return vt && vt->pointer == 0 && vt->isIntegral() && vt->typeSize(settings->platform) == 4;
+ return vt && vt->pointer == 0 && vt->isIntegral() && vt->getSizeOf(*settings, ValueType::Accuracy::ExactOrZero, ValueType::SizeOf::Pointer) == 4;
49
}
50
51
void Check64BitPortability::pointerassignment()
0 commit comments