Skip to content

Commit 73c95b5

Browse files
committed
Fix
1 parent b18d860 commit 73c95b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/check64bit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static bool is32BitIntegerReturn(const Function* func, const Settings* settings)
4545
if (settings->platform.sizeof_pointer != 8)
4646
return false;
4747
const ValueType* vt = func->arg->valueType();
48-
return vt && vt->pointer == 0 && vt->isIntegral() && vt->typeSize(settings->platform) == 4;
48+
return vt && vt->pointer == 0 && vt->isIntegral() && vt->getSizeOf(*settings, ValueType::Accuracy::ExactOrZero, ValueType::SizeOf::Pointer) == 4;
4949
}
5050

5151
void Check64BitPortability::pointerassignment()

0 commit comments

Comments
 (0)