Update semantic.d

add small protection against incorrect bitWidth.