correct type

This commit is contained in:
Dane Springmeyer 2009-12-13 23:27:43 +00:00
parent 0849ba0353
commit 19194dd8fa

View file

@ -119,7 +119,7 @@ ogr_datasource::ogr_datasource(parameters const& params)
extent_.init (envelope.MinX, envelope.MinY, envelope.MaxX, envelope.MaxY);
// scan for index file
unsigned breakpoint = dataset_name_.find_last_of (".");
size_t breakpoint = dataset_name_.find_last_of (".");
if (breakpoint == std::string::npos) breakpoint = dataset_name_.length();
index_name_ = dataset_name_.substr(0, breakpoint) + ".index";
std::ifstream index_file (index_name_.c_str(), std::ios::in | std::ios::binary);