1
0
mirror of https://github.com/Rogiel/PacketBuffer synced 2025-12-06 00:13:04 +00:00

Fix a implicit conversion warning under Windows

This commit is contained in:
2018-03-20 12:42:54 -03:00
parent 3e8cd24174
commit 592c4c8ee0
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ namespace PacketBuffer {
uint64_t length; uint64_t length;
unpacker(length); unpacker(length);
string.resize(length); string.resize((size_t) length);
unpacker.unpack(&string[0], string.size()); unpacker.unpack(&string[0], string.size());
} }
}; };

View File

@@ -71,7 +71,7 @@ namespace PacketBuffer {
uint64_t items; uint64_t items;
unpacker(items); unpacker(items);
vector.resize(items); vector.resize((size_t) items);
for(int i = 0; i < items; i++) { for(int i = 0; i < items; i++) {
unpacker(vector[i]); unpacker(vector[i]);
} }