Skip to content

Commit 7c504a1

Browse files
author
sprice
committed
Includes and signed warning removal.
1 parent 6be9126 commit 7c504a1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/cpp/flann/util/serialization.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#include <vector>
55
#include <map>
6+
#include <cstdlib>
7+
#include <cstring>
68
#include <stdio.h>
79
#include "flann/ext/lz4.h"
810
#include "flann/ext/lz4hc.h"
@@ -492,9 +494,9 @@ class LoadArchive : public InputArchive<LoadArchive>
492494
// Do the decompression
493495
size_t headSz = sizeof(IndexHeaderStruct);
494496
memcpy(buffer_, compBuffer, headSz);
495-
int usedSz = LZ4_decompress_fast(compBuffer+headSz,
496-
buffer_+headSz,
497-
head->uncompressed_size-headSz);
497+
size_t usedSz = LZ4_decompress_fast(compBuffer+headSz,
498+
buffer_+headSz,
499+
head->uncompressed_size-headSz);
498500
free(compBuffer);
499501

500502
// Check if the decompression was the expected size.

0 commit comments

Comments
 (0)