Fix bug in C++ code

Conversion for 'e' had a typo.