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