The sole of a 40 & 40.5 are precisely the same. What makes a 40.5 a 40.5 is that the UPPER is roomier. To get the .5, they make the toebox bigger.

That's why the sole says one thing and the upper says another. The upper is correct.