2 ms·
How can a C-style cast from char to unsigned possibly be "less safe", and how could a different style of cast be more safe?
by mikeash 14y ago
How can a C-style cast from char to unsigned possibly be "less safe", and how could a different style of cast be more safe?
- daivd 14y agoIn this case it obviously doesn't matter, but in the general case it is better to be explicit on which type of cast you are doing. That way the compiler can statically stop you from doing stupid things. Read the link I gave.