ソースを参照

fixed type ambiguity

unknown 12 年 前
コミット
a68446a16b
1 ファイル変更1 行追加1 行削除
  1. 1 1
      baselib/ICETools.cpp

+ 1 - 1
baselib/ICETools.cpp

@@ -210,7 +210,7 @@ int ICETools::showImages ( vector<NICE::Image> & imagelist )
   int ysize = imagelist[0].height();
   int ysize = imagelist[0].height();
 
 
   int n = imagelist.size();
   int n = imagelist.size();
-  int n1 = ( int ) sqrt ( n );
+  int n1 = ( int ) sqrt ( (double)n );
   int n2 = n / n1 + 1;
   int n2 = n / n1 + 1;
 
 
   NICE::Image img ( n1*xsize, n2*ysize );
   NICE::Image img ( n1*xsize, n2*ysize );