Hit expansion now produces the same expanded sequences in both the C and C++ versions.