Change unary minus test --1 to -(-1)

See http://lists.osgeo.org/pipermail/qgis-developer/2014-November/035835.html