I have a std::vector<unsigned short> that somehow contains numbers that are greater than 300.
unsigned short usually only permits 0 to 255, nowhere in the program attempts to add numbers that large and presumably attempts should fail.
How might this have occurred?
edit: Sorry about this, it’s not much of a useful question, seems I had the usigned short range wrong.
This is incorrect;
unsigned shortmust have a range at least 0 to 65,535 (216 – 1).