diff --git a/src/headers/transpiler/Target.hpp b/src/headers/transpiler/Target.hpp index c39baa1..21feae7 100644 --- a/src/headers/transpiler/Target.hpp +++ b/src/headers/transpiler/Target.hpp @@ -50,7 +50,7 @@ protected: const bool closingBraceIsNPOS = closingBrace == string::npos; const bool wrongClosingBrace = !closingBraceIsNPOS && ((hasNext && closingBrace > interpolationVector[i + 1])); if (closingBraceIsNPOS || wrongClosingBrace) { - output << view.substr(occurrence, (hasNext ? interpolationVector[i + 1] - occurrence : 0)); + output << view.substr(occurrence, (hasNext ? interpolationVector[i + 1] - occurrence : string::npos)); } output << closeCharacters; if (not closingBraceIsNPOS && not wrongClosingBrace) {