Add casts to double to fix compilation on ARM

These were needed to get qgis building on ARM on Fedora.
Is the &gt; just github mucking up display of this, or did something go wrong with the commit?