Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
return qRound64(d->data.d);
#ifndef QT_BOOTSTRAPPED
case QMetaType::QJsonValue:
- return v_cast<QJsonValue>(d)->toDouble();
+ return v_cast<QJsonValue>(d)->toDouble(0.0);
#endif
}
Q_ASSERT(false);
case QMetaType::QJsonValue:
if (!v_cast<QJsonValue>(d)->isDouble())
break;
- // no break
+ return qlonglong(v_cast<QJsonValue>(d)->toDouble(0.0));
#endif
case QVariant::Double:
case QVariant::Int:
case QMetaType::QJsonValue:
if (!v_cast<QJsonValue>(d)->isDouble())
break;
- // no break
+ return qulonglong(v_cast<QJsonValue>(d)->toDouble(0.0));
#endif
case QVariant::Double:
case QVariant::Int: