C++/CompilerStudy: bugfix for performance2.js