Skip to content

Commit

Permalink
update to latest version of llvm backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwight Guth committed Sep 27, 2023
1 parent 4039f07 commit 4ebc5d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin-c/json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ struct KoreHandler : BaseReaderHandler<UTF8<>, KoreHandler> {
stringinj *inj = (stringinj *)koreAlloc(sizeof(stringinj));
inj->h = strHdr;
string *token = (string *)koreAllocToken(sizeof(string) + len);
set_len(token, len);
init_with_len(token, len);
memcpy(token->data, str, len);
inj->data = token;
result = (block *)inj;
Expand Down
2 changes: 1 addition & 1 deletion plugin-c/plugin_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
extern "C" {
string* allocString(size_t len) {
struct string *result = (struct string *)koreAllocToken(len + sizeof(string));
set_len(result, len);
init_with_len(result, len);
return result;
}

Expand Down

0 comments on commit 4ebc5d9

Please sign in to comment.