SImilarly to #8663, looks like mingw32 implementation of frexp() violates the spec when dealing with +/-infinity.