QVariant: Fix qIsNumericType(SChar)

signed char is a numeric type

Change-Id: I5cf9ed63cb7a2ba56c08119c77bcac0f9369b5df
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
This commit is contained in:
Thiago Macieira 2014-11-17 16:21:58 -08:00
parent 849604e2f9
commit b86b2a742a

View File

@ -3139,7 +3139,8 @@ bool QVariant::convert(const int type, void *ptr) const
static bool qIsNumericType(uint tp)
{
return (tp >= QVariant::Bool && tp <= QVariant::Double)
|| (tp >= QMetaType::Long && tp <= QMetaType::Float);
|| (tp >= QMetaType::Long && tp <= QMetaType::Float)
|| tp == QMetaType::SChar;
}
static bool qIsFloatingPoint(uint tp)