浏览代码

ERR: Less-than-zero test replaced with greater-than-zero since we want zero arguments.

Brad King 25 年之前
父节点
当前提交
50c9139628
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/cmWrapTclCommand.cxx

+ 1 - 1
Source/cmWrapTclCommand.cxx

@@ -18,7 +18,7 @@
 // cmWrapTclCommand
 bool cmWrapTclCommand::Invoke(std::vector<std::string>& args)
 {
-  if(args.size() < 0 )
+  if(args.size() > 0 )
     {
     this->SetError("called with incorrect number of arguments");
     return false;