Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# v1.9.2-alpha0

* Add direct call for `ti_do_root_chain` _(small performance upgrade)_, pr #453.
* Fixed allocation too much memory for `ti_do_thing`, pr #454.

# v1.9.1

Expand Down
2 changes: 1 addition & 1 deletion inc/ti/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* "-rc0"
* ""
*/
#define TI_VERSION_PRE_RELEASE "-alpha0"
#define TI_VERSION_PRE_RELEASE "-alpha1"

#define TI_MAINTAINER \
"Jeroen van der Heijden <jeroen@cesbit.com>"
Expand Down
5 changes: 4 additions & 1 deletion src/ti/do.c
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,10 @@ int ti_do_enum_get(ti_query_t * query, cleri_node_t * nd, ex_t * e)

int ti_do_thing(ti_query_t * query, cleri_node_t * nd, ex_t * e)
{
return do__thing(query, nd->children->next, e, (uintptr_t) nd->data);
return do__thing(query,
nd->children->next,
e,
(uintptr_t) nd->children->next->data);
}

int ti_do_array(ti_query_t * query, cleri_node_t * nd, ex_t * e)
Expand Down
3 changes: 1 addition & 2 deletions src/ti/pkg.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ ti_pkg_t * ti_pkg_new(uint16_t id, uint8_t tp, const void * data, uint32_t n)
pkg->n = n;
pkg->id = id;

if (n)
memcpy(pkg->data, data, n);
memcpy(pkg->data, data, n);

return pkg;
}
Expand Down