def not_0(upper, lower):
    """Fills both values to whichever is not equal to 0, or leaves in place."""
    if upper == 0:
        return lower, lower
    elif lower == 0:
        return upper, upper
    else:
        return upper, lower
