소스 검색

fixed static array indexing

Johannes R 12 년 전
부모
커밋
ea8b02a200
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      core/vector/tests/TestStreamable.cpp

+ 1 - 1
core/vector/tests/TestStreamable.cpp

@@ -40,7 +40,7 @@ class StreamableClass : public NICE::Streamable, public NICE::BinStreamable {
 
 void TestStreamable::setUp() {
   s=NULL;
-  int k=10;
+  static const int k=10;
   double darray[k];
   long larray[2*k];
   float farray[2*k];