Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Mark constant literal as int64 before doing a bitshift

GIT_SILENT
parent db56de93
......@@ -179,7 +179,7 @@ int64_t ClassMemberDeclaration::alignOf() const
if (d_func()->m_alignOfExponent == ClassMemberDeclarationData::MaxAlignOfExponent) {
return -1;
} else {
return 1 << d_func()->m_alignOfExponent;
return Q_INT64_C(1) << d_func()->m_alignOfExponent;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment