X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fmodule.cpp;h=6f7fbdb93e9799dc488b7b10646c48cf2bc0c4ac;hb=86721a55699193e63c76e8a0a7b0ced0416c1cce;hp=374ef8ae4d71537fcfa36b37cdba910e63b7faf9;hpb=70d9d2d28e5fe723c6b46894276e4c935f578e2d;p=libs%2Fgl.git 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))