X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fmodule.cpp;h=6f7fbdb93e9799dc488b7b10646c48cf2bc0c4ac;hp=374ef8ae4d71537fcfa36b37cdba910e63b7faf9;hb=577a93f39f9b4d0f5101cd2f539fc774e7b06825;hpb=cdc2c7176202b4f8d1f3fd21db9c571511b32fa2 diff --git a/source/core/module.cpp b/source/core/module.cpp index 374ef8ae..6f7fbdb9 100644 --- a/source/core/module.cpp +++ b/source/core/module.cpp @@ -303,7 +303,7 @@ void SpirVModule::Reflection::reflect_code(const vector &code) for(CodeIterator op=code.begin()+5; op!=code.end(); ) { unsigned word_count = *op>>16; - if(word_count>code.end()-op) + if(word_count>static_cast(code.end()-op)) throw invalid_module("Truncated SPIR-V instruction"); switch(get_opcode(*op))