浏览代码

compiler warning

David Rose 18 年之前
父节点
当前提交
4a2a85bedc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/pgraph/lightAttrib.cxx

+ 1 - 1
panda/src/pgraph/lightAttrib.cxx

@@ -522,7 +522,7 @@ filter_to_max(int max_lights) const {
        CompareLightPriorities());
 
   // Now lop off all of the lights after the first max_lights.
-  if (priority_lights.size() > max_lights) { 
+  if ((int)priority_lights.size() > max_lights) { 
     priority_lights.erase(priority_lights.begin() + max_lights,
                           priority_lights.end());
   }