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) {}
diff --git a/layers/draw_state.h b/layers/draw_state.h
index 903f678..46ff886 100755
--- a/layers/draw_state.h
+++ b/layers/draw_state.h
@@ -313,7 +313,7 @@
uint32_t descriptorCount;
GENERIC_HEADER** ppDescriptors; // Array where each index points to update node for its slot
LAYOUT_NODE* pLayout; // Layout for this set
- struct SET_NODE* pNext;
+ SET_NODE* pNext;
vector<uint32_t> dynamicOffsets; // one dynamic offset per dynamic descriptor
SET_NODE() : pUpdateStructs(NULL), ppDescriptors(NULL), pLayout(NULL), pNext(NULL) {};
};