David Rose 16 년 전
부모
커밋
b1e21add06
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      panda/src/pnmimage/pnmImage.cxx

+ 2 - 1
panda/src/pnmimage/pnmImage.cxx

@@ -17,6 +17,7 @@
 #include "pnmWriter.h"
 #include "pnmBrush.h"
 #include "config_pnmimage.h"
+#include <algorithm>
 
 ////////////////////////////////////////////////////////////////////
 //     Function: PNMImage::Constructor
@@ -1124,7 +1125,7 @@ make_histogram(PNMImage::Histogram &histogram) {
       pixels.push_back(PixelSpecCount((*hi).first, (*hi).second));
     }
   }
-  sort(pixels.begin(), pixels.end());
+  ::sort(pixels.begin(), pixels.end());
 
   histogram.swap(pixels, hist_map);
 }