aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-01-25 13:37:06 -0700
committerMark Young <marky@lunarg.com>2016-01-25 16:04:01 -0700
commit605107e8c793a0059dd4aafd9aed1da37d6856a1 (patch)
tree4340b95510436f0156d7155fa46b00a66538108e /layers/draw_state.cpp
parent8b39a588d490f53eecce17d60e6bd26a701e09f4 (diff)
downloadusermoji-605107e8c793a0059dd4aafd9aed1da37d6856a1.tar.xz
BUILD: Fixed more compilation warnings on 32-bit Windows builds.
Fixed more compilation warnings on 32-bit Windows builds.
Diffstat (limited to 'layers/draw_state.cpp')
-rw-r--r--layers/draw_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 89b61a3d..c9e34bcb 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -146,7 +146,7 @@ struct spirv_inst_iter {
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) {}