Skip to content

Commit 5ded48c

Browse files
Update check64bit.cpp
1 parent 43de972 commit 5ded48c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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->isIntegral() && vt->typeSize(settings->platform) == 4;
48+
return vt && vt->pointer == 0 && vt->isIntegral() && vt->typeSize(settings->platform) == 4;
4949
}
5050

5151
void Check64BitPortability::pointerassignment()

0 commit comments

Comments
 (0)