From: Mikko Rasa Date: Fri, 9 Apr 2021 14:08:16 +0000 (+0300) Subject: Fix a signedness warning X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=577a93f39f9b4d0f5101cd2f539fc774e7b06825;p=libs%2Fgl.git Fix a signedness warning --- 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))