LibIMAP: Make Section::parts unsigned
This commit is contained in:
parent
27644785f1
commit
2c793d5935
Notes:
sideshowbarker
2024-07-18 08:24:22 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/2c793d59354 Pull-request: https://github.com/SerenityOS/serenity/pull/8826 Reviewed-by: https://github.com/MaxWipfli Reviewed-by: https://github.com/X-yl Reviewed-by: https://github.com/linusg
2 changed files with 3 additions and 3 deletions
|
@ -275,7 +275,7 @@ struct FetchCommand {
|
|||
struct Section {
|
||||
SectionType type;
|
||||
|
||||
Optional<Vector<int>> parts {};
|
||||
Optional<Vector<unsigned>> parts {};
|
||||
bool ends_with_mime {};
|
||||
|
||||
Optional<Vector<String>> headers {};
|
||||
|
|
|
@ -716,12 +716,12 @@ FetchCommand::DataItem Parser::parse_fetch_data_item()
|
|||
consume("]");
|
||||
} else if (is_ascii_digit(section_type[0])) {
|
||||
data_item.section->type = FetchCommand::DataItem::SectionType::Parts;
|
||||
data_item.section->parts = Vector<int>();
|
||||
data_item.section->parts = Vector<unsigned>();
|
||||
|
||||
while (!try_consume("]")) {
|
||||
auto num = parse_number();
|
||||
if (num != (unsigned)-1) {
|
||||
data_item.section->parts->append((int)num);
|
||||
data_item.section->parts->append(num);
|
||||
continue;
|
||||
}
|
||||
auto atom = parse_atom();
|
||||
|
|
Loading…
Add table
Reference in a new issue