diff --git a/Common/GmshRemote.cpp b/Common/GmshRemote.cpp index 6dcd67bf9d39cd370760e54853fffaab06d71d80..adb0b3b01013848868ed2bb9dd0cd9a57ec732bd 100644 --- a/Common/GmshRemote.cpp +++ b/Common/GmshRemote.cpp @@ -60,17 +60,17 @@ void GmshRemote::runCommand(int commandIndex, int optionIndex, int optionChoice) std::string meshArg = meshFileName.empty() ? "" : ReplacePercentS (meshFileSwitch, std::string("\"") + FixWindowsPath(meshFileName) + "\""); - if(commandIndex < 0 || commandIndex >= buttonSwitch.size()){ + if(commandIndex < 0 || commandIndex >= (int)buttonSwitch.size()){ Msg::Error("Wrong command index"); return; } - if(optionIndex < 0 || optionIndex >= optionValue.size()){ + if(optionIndex < 0 || optionIndex >= (int)optionValue.size()){ Msg::Error("Wrong option index"); return; } - if(optionChoice < 0 || optionChoice >= optionValue[optionIndex].size()){ + if(optionChoice < 0 || optionChoice >= (int)optionValue[optionIndex].size()){ Msg::Error("Wrong option choice"); return; } diff --git a/Plugin/Tetrahedralize.cpp b/Plugin/Tetrahedralize.cpp index 88d01e0a8d2854767431d43bc6189654cd28ed5c..ab7e6f44823cc5d16553c9ab6015ece7dedf99b9 100644 --- a/Plugin/Tetrahedralize.cpp +++ b/Plugin/Tetrahedralize.cpp @@ -114,7 +114,7 @@ PView *GMSH_TetrahedralizePlugin::execute(PView *v) return v1; } - if(points.size() != out.numberofpoints){ + if(out.numberofpoints != (int)points.size()){ Msg::Error("Tetrahedralization added points (%d -> %d): aborting", points.size(), out.numberofpoints); return v1;