Merge pull request #319 from amerkoleci/fix_cast

Just minor warning fix when compiling under x64
This commit is contained in:
Hans-Kristian Arntzen 2017-11-06 21:32:51 +01:00 committed by GitHub
commit 886fa8129d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2486,7 +2486,7 @@ void CompilerHLSL::emit_access_chain(const Instruction &instruction)
if (need_byte_access_chain)
{
uint32_t to_plain_buffer_length = type.array.size();
uint32_t to_plain_buffer_length = static_cast<uint32_t>(type.array.size());
string base;
if (to_plain_buffer_length != 0)