1
0
mirror of https://github.com/Rogiel/PacketBuffer synced 2025-12-06 08:23:05 +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;
unpacker(length);
string.resize(length);
string.resize((size_t) length);
unpacker.unpack(&string[0], string.size());
}
};

View File

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