diff -r 31a43d94cc26 -r 851de24ecb61 src/MemoryMap.cpp --- a/src/MemoryMap.cpp Sun Sep 20 15:14:12 2009 -0700 +++ b/src/MemoryMap.cpp Sun Sep 20 21:25:47 2009 -0700 @@ -22,13 +22,13 @@ } void MemoryMap::mapRegion (off_t pos, size_t length) { - size_t end = pos+length; + off_t end = pos+length; for (int i=0; i<_nRegions; i++) { Region *region = _regions[i]; if (region->position() <= pos) { if (end <= region->end()) return; // found an existing region covering this range - else if (region->setLength(end - region->position())) + else if (region->setLength((size_t)(end - region->position()))) return; // able to grow the existing region } }