Discrepancy in Mix_LoadMUSType_RW, an API in SDL2_mixer

Hi

I’ve found a discrepancy in the API Mix_LoadMUSType_RW, it takes parameters SDL_RWops * and Mix_MusicType type but there is no check to detect whether the passed pointer and type are of the same type.
For example
I passed SDL_RWops * for a WAV file and specified type as MUS_MP3 ( by mistake ) yet the API returned a pointer instead of NULL.

What are your views on this ?