Avoiding problems with matching signed and unsigned types in C++ | Hacker News Reader