fix two compiler warnings
allow expressions as arguments of MaxRelDiff