diff --git a/src/corelib/global/qtypes.h b/src/corelib/global/qtypes.h index 705de1a0883..db9ba38e4cf 100644 --- a/src/corelib/global/qtypes.h +++ b/src/corelib/global/qtypes.h @@ -77,12 +77,12 @@ __extension__ typedef __uint128_t quint128; # ifdef __cplusplus /* need to avoid c-style-casts in C++ mode */ # define QT_C_STYLE_CAST(type, x) static_cast(x) # else /* but C doesn't have constructor-style casts */ -# define QT_C_STYLE_CAST(type, x) ((type)x) +# define QT_C_STYLE_CAST(type, x) ((type)(x)) # endif # ifndef Q_UINT128_MAX /* allow qcompilerdetection.h/user override */ # define Q_UINT128_MAX QT_C_STYLE_CAST(quint128, -1) # endif -# define Q_INT128_MAX QT_C_STYLE_CAST(qint128, (Q_UINT128_MAX / 2)) +# define Q_INT128_MAX QT_C_STYLE_CAST(qint128, Q_UINT128_MAX / 2) # define Q_INT128_MIN (-Q_INT128_MAX - 1) # ifdef __cplusplus