Explorar o código

BUG: Need at least 2 arguments, not exactly 2.

Brad King %!s(int64=23) %!d(string=hai) anos
pai
achega
3303599c75
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/cmFLTKWrapUICommand.cxx

+ 1 - 1
Source/cmFLTKWrapUICommand.cxx

@@ -19,7 +19,7 @@
 // cmFLTKWrapUICommand
 // cmFLTKWrapUICommand
 bool cmFLTKWrapUICommand::InitialPass(std::vector<std::string> const& args)
 bool cmFLTKWrapUICommand::InitialPass(std::vector<std::string> const& args)
 {
 {
-  if(args.size() != 2 )
+  if(args.size() < 2 )
     {
     {
     this->SetError("called with incorrect number of arguments");
     this->SetError("called with incorrect number of arguments");
     return false;
     return false;