Small issue with line ends

I’m currently working with Lines and noticed that the filled ends of the line when set to 0.5 pixels do not look consistent in size.