Mercurial > public > cpp-enigma
diff enigma/rotor.cpp @ 2:713fa2a9ea9a
CxxTest support. Added rotor tests.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 22 Jun 2012 22:02:55 -0500 |
parents | 1459e74fda3f |
children |
line wrap: on
line diff
--- a/enigma/rotor.cpp Fri Jun 22 20:15:11 2012 -0500 +++ b/enigma/rotor.cpp Fri Jun 22 22:02:55 2012 -0500 @@ -91,7 +91,7 @@ if (stepping != nullptr) { - for (char c = *stepping; *stepping != '\0'; ++stepping) + for (char c = *stepping; *stepping != '\0'; c = *(++stepping)) { if (ucase_set.find(c) != ucase_set.end()) {