[Avida-SVN] r1116 - development/source/tools
barrick at myxo.css.msu.edu
barrick at myxo.css.msu.edu
Thu Dec 7 12:54:34 PST 2006
Author: barrick
Date: 2006-12-07 15:54:34 -0500 (Thu, 07 Dec 2006)
New Revision: 1116
Modified:
development/source/tools/cStringUtil.cc
Log:
Little fix for reading ranges like "123..456" used by CELL environment code.
Modified: development/source/tools/cStringUtil.cc
===================================================================
--- development/source/tools/cStringUtil.cc 2006-12-07 18:05:41 UTC (rev 1115)
+++ development/source/tools/cStringUtil.cc 2006-12-07 20:54:34 UTC (rev 1116)
@@ -319,7 +319,7 @@
/* if the string has a .. in it find the two numbers on either side of it */
- if (chunk.IsSubstring(".",1)) {
+ if (chunk.Find(".") != -1) {
cString start_str = chunk.Pop('.');
chunk.RemoveChar('.');
cString stop_str = chunk.PopWord();
More information about the Avida-cvs
mailing list