diff options
author | Luke <luke.wilde@live.co.uk> | 2021-07-22 21:33:20 +0100 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-07-24 20:11:28 +0430 |
commit | 2c793d59354599f2b5689288bea57fe264dc8792 (patch) | |
tree | 66be3a5b454d3d99275c7a8500778aec60015c02 /Userland/Libraries/LibIMAP | |
parent | 27644785f168dd4ef9068855700d46e0e720e67b (diff) | |
download | serenity-2c793d59354599f2b5689288bea57fe264dc8792.zip |
LibIMAP: Make Section::parts unsigned
Diffstat (limited to 'Userland/Libraries/LibIMAP')
-rw-r--r-- | Userland/Libraries/LibIMAP/Objects.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibIMAP/Parser.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibIMAP/Objects.h b/Userland/Libraries/LibIMAP/Objects.h index f67f562950..7444591313 100644 --- a/Userland/Libraries/LibIMAP/Objects.h +++ b/Userland/Libraries/LibIMAP/Objects.h @@ -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 {}; diff --git a/Userland/Libraries/LibIMAP/Parser.cpp b/Userland/Libraries/LibIMAP/Parser.cpp index b2b06ecfe3..496f9d3160 100644 --- a/Userland/Libraries/LibIMAP/Parser.cpp +++ b/Userland/Libraries/LibIMAP/Parser.cpp @@ -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(); |