From 4d190963cf9d0031a558b5ee3847be4494b028c4 Mon Sep 17 00:00:00 2001 From: csoler Date: Wed, 9 Dec 2009 12:42:31 +0000 Subject: [PATCH] windows compilation fix git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1864 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/ft/ftchunkmap.cc | 2 +- libretroshare/src/ft/ftchunkmap.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/ft/ftchunkmap.cc b/libretroshare/src/ft/ftchunkmap.cc index d3dcfa849..2af63480f 100644 --- a/libretroshare/src/ft/ftchunkmap.cc +++ b/libretroshare/src/ft/ftchunkmap.cc @@ -221,7 +221,7 @@ uint32_t ChunkMap::getAvailableChunk(uint32_t start_location,const std::string& const std::vector peer_chunks(it->second) ; #endif - for(uint i=0;i<_map.size();++i) + for(unsigned int i=0;i<_map.size();++i) { uint32_t j = (start_location+i)%_map.size() ; diff --git a/libretroshare/src/ft/ftchunkmap.h b/libretroshare/src/ft/ftchunkmap.h index 0732253cd..f2f06115d 100644 --- a/libretroshare/src/ft/ftchunkmap.h +++ b/libretroshare/src/ft/ftchunkmap.h @@ -80,6 +80,7 @@ class ChunkMap // Constructor. Decides what will be the size of chunks and how many there will be. ChunkMap(uint64_t file_size) ; + virtual ~ChunkMap() {} // Returns an slice of data to be asked to the peer within a chunk. // If a chunk is already been downloaded by this peer, take a slice at