From 2358b6592134b14fa7fb3a5a8f0aafed81539aaa Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sat, 21 Jan 2017 14:47:10 +0200 Subject: [PATCH] Fixed compiler warning reported by GGC/Clang No more 'warning: comparison of integers of different signs: int and unsigned long' --- src/scripting/zscript/zcc_compile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/zscript/zcc_compile.cpp b/src/scripting/zscript/zcc_compile.cpp index eccd12833..ddf08fbc4 100644 --- a/src/scripting/zscript/zcc_compile.cpp +++ b/src/scripting/zscript/zcc_compile.cpp @@ -1427,7 +1427,7 @@ FString ZCCCompiler::FlagsToString(uint32_t flags) const char *flagnames[] = { "native", "static", "private", "protected", "latent", "final", "meta", "action", "deprecated", "readonly", "funcconst", "abstract", "extension", "virtual", "override", "transient", "vararg" }; FString build; - for (int i = 0; i < countof(flagnames); i++) + for (size_t i = 0; i < countof(flagnames); i++) { if (flags & (1 << i)) {