def _fix_real_lt_zero(x):
x = asarray(x)<EOL>if any(isreal(x) & (x < <NUM_LIT:0>)):<EOL><INDENT>x = _tocomplex(x)<EOL><DEDENT>return x<EOL>
Convert `x` to complex if it has real, negative components.

    Otherwise, output is just the array version of the input (via asarray).

    Parameters
    ----------
    x : array_like

    Returns
    -------
    array

    Examples
    --------
    >>> np.lib.scimath._fix_real_lt_zero([1,2])
    array([1, 2])

    >>> np.lib.scimath._fix_real_lt_zero([-1,2])
    array([-1.+0.j,  2.+0.j])