Преглед изворни кода

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];