This failure mode of saying the reverse of what was meant is called misnegation. Often it's accompanied by readers or listeners taking the intended meaning without noticing the mistake.