From 605107e8c793a0059dd4aafd9aed1da37d6856a1 Mon Sep 17 00:00:00 2001 From: Mark Young Date: Mon, 25 Jan 2016 13:37:06 -0700 Subject: BUILD: Fixed more compilation warnings on 32-bit Windows builds. Fixed more compilation warnings on 32-bit Windows builds. --- layers/draw_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layers/draw_state.cpp') 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::const_iterator zero, std::vector::const_iterator it) : zero(zero), it(it) {} -- cgit v1.2.3