Quote Originally Posted by matsp
But you are making assumptions that your code will always be in a particular environment.
the only assumption i'm making is that there's always have enough room for the range of values i need. and it's not really an assumption because i guarantee it with my choice of types.
Quote Originally Posted by matsp
If you want portable code, you should use typedefs
what you mean is if i want a variable to have the same number of bits regardless of the environment. my way is still portable, i don't need typedefs unless i want to force an exact size.