Avoid clang7 self-assignment warning for isNaN /= isNaN.
Indeed, isNaN could be something complicated, although normally it just should be double.
See also merge request dune-common!573 (closed) and dune-common!578 (merged)
Edited by Claus-Justus Heine