From 82cd8769e7a81a6be0e153edac1d37ed94b663dd Mon Sep 17 00:00:00 2001 From: weefuzzy Date: Tue, 3 May 2022 14:17:38 +0100 Subject: [PATCH] Wrapper: integer sign warnings --- include/wrapper/Messaging.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wrapper/Messaging.hpp b/include/wrapper/Messaging.hpp index ef5ee8b..dda88e2 100644 --- a/include/wrapper/Messaging.hpp +++ b/include/wrapper/Messaging.hpp @@ -98,7 +98,7 @@ struct FluidSCMessaging{ ForEach(args,[&typesMatch,&tagsIter,&tagsEnd,firstTag=tags.begin(),&argCount](auto& arg){ if(tagsIter == tagsEnd) { - if(std::distance(firstTag,tagsIter) < expectedArgCount) typesMatch = false; + if(std::distance(firstTag,tagsIter) < asSigned(expectedArgCount)) typesMatch = false; return; } char t = *(tagsIter++); @@ -169,7 +169,7 @@ struct FluidSCMessaging{ ForEach(msg-> args,[inWorld,&args,tagCount,n=0](auto& thisarg)mutable { - if(n++ < tagCount.value()) + if(n++ < asSigned(tagCount.value())) thisarg = ParamReader::fromArgs(inWorld, *args,thisarg,0); });