Skip to content

Commit

Permalink
cast to larger data type on 32bits, probably fixes #809
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisOSRM authored and DennisOSRM committed Dec 8, 2013
1 parent f77fa5b commit f68a046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ int main( const int argc, const char * argv[] ) {
shared_layout_ptr->ram_index_file_name
);
// add zero termination
unsigned end_of_string_index = std::min(1023ul, file_index_file_name.length());
unsigned end_of_string_index = std::min((std::size_t)1023, file_index_file_name.length());
shared_layout_ptr->ram_index_file_name[end_of_string_index] = '\0';

// collect number of elements to store in shared memory object
Expand Down

0 comments on commit f68a046

Please sign in to comment.