1. 11
  1.  

  2. 2

    Okay this is interesting. I wondered why the compiler was happily letting this go through but I discovered that -Wall -Wextra doesn’t include -Wsign-conversion which would have caught this bug at compile-time: https://godbolt.org/z/c5673b83b

    Of course it could have had many false positives…