Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
tahnik387598y@Gauthier The compiler does gives a warning. No idea why whoever wrote this ignored it. Maybe in the beginning it was less then 256 then a douche changed it later.
This code is being changed from 2005 -
oh man.. the typedef "hack" brings back memories to an old rant, I posted a while ago...
-
Yeah I wouldn't do the typedef hack unless I was fixing to leave in a few months and everybody pissed me off
-
@JaggerJo uint8_t is in standard C, it's in stdint.h. Some people dislike the _t (it's really only a matter of getting used to it) so they redefine it.
Related Rants
Just found this in our code:
UINT8 variableName = 500;
Any developer who is getting paid should know the largest value an unsigned 8 bit integer can hold
undefined
intern
256
2^8