Indeed, works with signed integer ``` char BitsToChar(in int bit5) { const int b=bit5&0x1f; return b<10?'0'+b:'a'+(b-10); } ```