On 06/03/2017 10:46, Peter Maydell wrote: > On 6 March 2017 at 04:06, Philippe Mathieu-Daudé <f4...@amsat.org> wrote: >> your change seems OK but while you are here, 'unsigned' is considered >> harmful since more than a decade. > > Considered harmful by who, and why?
It is true that unsigned has all the disadvantages of "int" (it may be smaller than the size of the object" and all the disadvantages of "size_t" (it doesn't optimize as well because the compiler cannot exploit undefined behavior). I wouldn't call it harmful, but it feels like the worst of both worlds. Paolo