@dryak that would require an intimate knowledge of the C language and its typing system (not trivial depending on one's background).
It's mostly a leak abstraction if the underneath machine code.
And a complete overhaul of how C is parsed in order to carry over the necessary extra information about type to detect this.
BUT!...
@dryak ...BUT a proper linter should immediately spot the problem:
There are way too many stuff between the single quotes in the source code for a proper character.
Are you sure you really want a char/an int8/an integet? Didn't you mean a string instead and forgot the double quotes?