Fix a logic bug when copying fast-math flags.