Changeset 28699 for main/trunk/search4j/libsearch4j.cpp
- Timestamp:
- 2013-11-26T16:06:16+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/search4j/libsearch4j.cpp
r22529 r28699 177 177 era_ = atoi( version.substr(0,1).c_str() ); 178 178 major_ = atoi( version.substr(2,1).c_str() ); 179 minor_ = atoi( version.substr(4,1).c_str() ); 180 update_ = atoi( version.substr(6,2).c_str() ); 179 if(version.length() >= 5) { 180 minor_ = atoi( version.substr(4,1).c_str() ); 181 } else { 182 minor_ = 0; 183 } 184 if(version.length() >= 7) { 185 update_ = atoi( version.substr(6,2).c_str() ); 186 } else { 187 update_ = 0; 188 } 181 189 return true; 182 190 }
Note:
See TracChangeset
for help on using the changeset viewer.