BUILD: Fixed more compilation warnings on 32-bit Windows builds.
Fixed more compilation warnings on 32-bit Windows builds.
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 89b61a3..c9e34bc 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -146,7 +146,7 @@
uint32_t len() { return *it >> 16; }
uint32_t opcode() { return *it & 0x0ffffu; }
uint32_t const & word(unsigned n) { return it[n]; }
- uint32_t offset() { return it - zero; }
+ uint32_t offset() { return (uint32_t)(it - zero); }
spirv_inst_iter(std::vector<uint32_t>::const_iterator zero,
std::vector<uint32_t>::const_iterator it) : zero(zero), it(it) {}