-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
format mismatch warnings #1799
Comments
The format is wrong, it should not say |
I am no longer so sure about that statement (and even reading the C standard doesn't make it better :). I'd say, let's drop the Do you want me to prepare a PR? |
The utility of %h[dxu] is to convert the int/unsigned argument (automatically promoted!) to short or unsigned short before printing. In most of above cases the
prints -32768 owing to the argument 0x88000 being converted to short 0x8000 and then, being a negative short printed so. |
There would at least be an
(unsigned short)
typecast missing.Anyway, I wonder what's the point of forcing all that into unsigned short, rather than keeping it simply
unsigned
, and remove all theh
format modificators?The text was updated successfully, but these errors were encountered: