gs: Fix some type conversion warnings

This commit is contained in:
Xaymar 2017-10-22 18:58:38 +02:00
parent 6a208ed215
commit b266af1044

View file

@ -37,11 +37,11 @@ GS::IndexBuffer::IndexBuffer(uint32_t maximumVertices) {
GS::IndexBuffer::IndexBuffer() : IndexBuffer(defaultMaximumVertices) {}
GS::IndexBuffer::IndexBuffer(IndexBuffer& other) : IndexBuffer(other.size()) {
GS::IndexBuffer::IndexBuffer(IndexBuffer& other) : IndexBuffer((uint32_t)other.size()) {
std::copy(other.begin(), other.end(), this->end());
}
GS::IndexBuffer::IndexBuffer(std::vector<uint32_t>& other) : IndexBuffer(other.size()) {
GS::IndexBuffer::IndexBuffer(std::vector<uint32_t>& other) : IndexBuffer((uint32_t)other.size()) {
std::copy(other.begin(), other.end(), this->end());
}