(map_char_table): Declare depth as int.