Commit 231943bf by Shannon Woods

Fix signed-unsigned mismatch

Change-Id: Ie7fba8a0fd0475a395205139c4f7169cc94e61b7 Reviewed-on: https://chromium-review.googlesource.com/217510Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarShannon Woods <shannonwoods@chromium.org>
parent c9e69b19
...@@ -1604,7 +1604,7 @@ StaticIndexBufferInterface *Renderer9::getCountingIB(size_t count) ...@@ -1604,7 +1604,7 @@ StaticIndexBufferInterface *Renderer9::getCountingIB(size_t count)
} }
unsigned short *data = reinterpret_cast<unsigned short*>(mappedMemory); unsigned short *data = reinterpret_cast<unsigned short*>(mappedMemory);
for (int i = 0; i < count; i++) for (size_t i = 0; i < count; i++)
{ {
data[i] = i; data[i] = i;
} }
...@@ -1638,7 +1638,7 @@ StaticIndexBufferInterface *Renderer9::getCountingIB(size_t count) ...@@ -1638,7 +1638,7 @@ StaticIndexBufferInterface *Renderer9::getCountingIB(size_t count)
} }
unsigned int *data = reinterpret_cast<unsigned int*>(mappedMemory); unsigned int *data = reinterpret_cast<unsigned int*>(mappedMemory);
for (int i = 0; i < count; i++) for (size_t i = 0; i < count; i++)
{ {
data[i] = i; data[i] = i;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment