diff options
author | George L. Albany <Megacake1234@gmail.com> | 2024-07-05 22:30:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-05 22:30:32 +0200 |
commit | 4a49007492152037bc1e9636b024cc67700e9dae (patch) | |
tree | 457b7fbda6d4470465c05d59b0ca51ed30628640 /src/openvic-dataloader/AbstractSyntaxTree.cpp | |
parent | deed8ec0ae23651529a58125012c1b4aab015d02 (diff) | |
parent | 3eb78b27505b602c1ccfa952c4cc00f942ccb2b9 (diff) |
Merge pull request #50 from OpenVicProject/simplify-string-interning
Fix string interning pointer invalidity for AST
Diffstat (limited to 'src/openvic-dataloader/AbstractSyntaxTree.cpp')
-rw-r--r-- | src/openvic-dataloader/AbstractSyntaxTree.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvic-dataloader/AbstractSyntaxTree.cpp b/src/openvic-dataloader/AbstractSyntaxTree.cpp index d6f58f7..e6885a5 100644 --- a/src/openvic-dataloader/AbstractSyntaxTree.cpp +++ b/src/openvic-dataloader/AbstractSyntaxTree.cpp @@ -11,7 +11,7 @@ AbstractSyntaxTree::symbol_type AbstractSyntaxTree::intern(std::string_view str) } const char* AbstractSyntaxTree::intern_cstr(const char* str, std::size_t length) { - return intern(str, length).c_str(_symbol_interner); + return intern(str, length).c_str(); } const char* AbstractSyntaxTree::intern_cstr(std::string_view str) { |