X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=rsdecoder.cpp;fp=rsdecoder.cpp;h=0a11541c377a595a1ce7cfcffff9421656817a6e;hb=7019fcdc8632b5740798e8345b48e23640e2de1b;hp=58fa1ac634cd4df294d6a04a4554e1d30fb53028;hpb=3f954bd32d89c220993d14782e73decc5f567abd;p=greproxy diff --git a/rsdecoder.cpp b/rsdecoder.cpp index 58fa1ac..0a11541 100644 --- a/rsdecoder.cpp +++ b/rsdecoder.cpp @@ -17,7 +17,7 @@ RSDecoder::RSDecoder(Sender *sender) { } -void RSDecoder::send_packet(uint16_t proto, const std::string &data, int incoming_seq) +void RSDecoder::send_packet(uint16_t proto, const std::string &data, uint32_t incoming_seq) { int rs_group; if (proto == 0xffff) { @@ -85,7 +85,7 @@ void RSDecoder::send_packet(uint16_t proto, const std::string &data, int incomin vector padded_packets; std::map shares; for (const auto &packet_pair : group.packets) { - int packet_seq = packet_pair.first; + uint32_t packet_seq = packet_pair.first; int share_num; string p; p.resize(max_length);