Compile fix on 32-bit or non-windows with analytics enabled

This commit is contained in:
baldurk
2018-02-05 22:02:33 +00:00
parent dfe5bbe4c0
commit 6fd9b47d04
+9
View File
@@ -37,6 +37,12 @@
#if RENDERDOC_ANALYTICS_ENABLE
template <>
inline const char *TypeName<int32_t>()
{
return "int";
}
template <>
inline const char *TypeName<QString>()
{
@@ -314,7 +320,10 @@ void AnalyticsSerialise(Analytics &serdb, QVariantMap &values, AnalyticsSerialis
{
bool reporting = type == AnalyticsSerialiseType::Reporting;
// only check this on 64-bit as it is different on 32-bit
#if QT_POINTER_SIZE == 8 && defined(Q_OS_WIN32)
static_assert(sizeof(Analytics) == 147, "Sizeof Analytics has changed - update serialisation.");
#endif
QString doc;