2048.c
2048.c copied to clipboard
src: apply some fixes
- Use the
%uformat specifier for printinguint32_t. - Cast the right-hand side of the condition of the
forloop touint8_twhere it was implicitly promoted toint. - Use
intvariable forgetchar()since it can returnEOF(-1) to indicate an error,charcannot hold negative integers. - Use
EOFinstead of-1to be idiomatic.