Compare doubles against 0.0 instead of 0

The previous fix changed the code in the build/ directory by accident, not in the source directory. Sorry for the confusion.