Fix compilation when qreal is float