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:
@@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user