wchar_t
is a distinct type that is defined to have the same properties as one of the other integer types.
Type
wchar_t
is a distinct type [...]. Typewchar_t
shall have the same size, signedness, and alignment requirements (3.11) as one of the other integral types, called its underlying type.
So you can't implicitly convert from a wchar_t*
to a short*
just as much as from an int*
to a short*
.