unsigned shift fix (cannot read from stdin)

Signed-off-by: Mattias Andrée <maandree@operamail.com>