Skip to content

Commit

Permalink
fix dict_removeArg
Browse files Browse the repository at this point in the history
  • Loading branch information
pikasTech committed Aug 12, 2023
1 parent 893972b commit 9f601df
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion port/linux/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"program": "${workspaceFolder}/build/test/pikascript_test",
// "program": "${workspaceFolder}/build/boot/demo06-pikamain/pikascript_demo06-pikamain",
"args": [
// "--gtest_filter=VM.dict_base"
"--gtest_filter=vm.keyword_2"
// "--gtest_filter=event.event1"
],
"stopAtEntry": false,
Expand Down
2 changes: 1 addition & 1 deletion src/PikaObj.c
Original file line number Diff line number Diff line change
Expand Up @@ -4304,7 +4304,7 @@ PIKA_RES pikaDict_set(PikaDict* self, char* name, Arg* val) {
}

PIKA_RES pikaDict_removeArg(PikaDict* self, Arg* val) {
args_removeArg(_OBJ2KEYS(self), (val));
// args_removeArg(_OBJ2KEYS(self), (val));
return args_removeArg(_OBJ2DICT(self), (val));
}

Expand Down
2 changes: 1 addition & 1 deletion src/PikaVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#define PIKA_VERSION_MINOR 12
#define PIKA_VERSION_MICRO 5

#define PIKA_EDIT_TIME "2023/08/12 23:05:27"
#define PIKA_EDIT_TIME "2023/08/13 00:18:58"
1 change: 1 addition & 0 deletions src/dataLink.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ static void _link_removeNode(Link* self,
// deinit the node
__exit:
if (is_deinit_node) {
pika_assert(NULL != nodeToDelete);
linkNode_deinit(nodeToDelete);
}
return;
Expand Down

0 comments on commit 9f601df

Please sign in to comment.