Fix: Unsigned and signed integer compare in src/session.cc