Changeset 319 for cpp/frams/genetics/fT
- Timestamp:
- 02/01/15 01:08:50 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fT/oper_fTest.cpp
r286 r319 65 65 if (!gene[0]) return 1; //empty is not valid 66 66 bool ok = true; 67 int i;67 size_t i; 68 68 for (i = 0; i < strlen(gene); i++) if (!strchr("ATGC", gene[i])) { ok = false; break; } 69 69 return ok ? GENOPER_OK : i + 1; … … 74 74 { 75 75 SString validated; //new genotype (everything except ATGC is skipped) 76 for ( int i = 0; i < strlen(gene); i++)76 for (size_t i = 0; i < strlen(gene); i++) 77 77 if (strchr("ATGC", gene[i])) validated += gene[i]; //validated contains only ATGC 78 78 free(gene);
Note: See TracChangeset
for help on using the changeset viewer.