From 577a93f39f9b4d0f5101cd2f539fc774e7b06825 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 9 Apr 2021 17:08:16 +0300 Subject: [PATCH] Fix a signedness warning --- source/core/module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.43.0