little change in flann save_value. Likely does not affect anything
authorVadim Pisarevsky <no@email>
Sat, 4 Dec 2010 17:09:40 +0000 (17:09 +0000)
committerVadim Pisarevsky <no@email>
Sat, 4 Dec 2010 17:09:40 +0000 (17:09 +0000)
modules/flann/include/opencv2/flann/saving.h

index 5a17311..bc75eb5 100644 (file)
@@ -97,7 +97,7 @@ CV_EXPORTS IndexHeader load_header(FILE* stream);
 template<typename T>
 void save_value(FILE* stream, const T& value, int count = 1)
 {
-       fwrite(&value, sizeof(value),count, stream);
+       fwrite(&value, 1, sizeof(value)*count, stream);
 }