The largest real value of $a$ for which the equation $|x+a|+|x-1|=2$ has an infinite number of solutions for $x$ is