Skip to content

Commit

Permalink
Fix #track_changes
Browse files Browse the repository at this point in the history
  • Loading branch information
noteflakes committed Feb 12, 2024
1 parent 1224e71 commit 62032aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/extralite/changeset.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ VALUE Changeset_to_a(VALUE self) {

// copied from: https://sqlite.org/sessionintro.html
static int xConflict(void *pCtx, int eConflict, sqlite3_changeset_iter *pIter){
int ret = (int)pCtx;
long ret = (long)pCtx;
return ret;
}

Expand Down
2 changes: 1 addition & 1 deletion ext/extralite/database.c
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ VALUE Database_track_changes(int argc, VALUE *argv, VALUE self) {
self_to_open_database(self);

VALUE changeset = rb_funcall(cChangeset, ID_new, 0);
VALUE tables = rb_array_new_from_values(argc, argv);
VALUE tables = rb_ary_new_from_values(argc, argv);

rb_funcall(changeset, ID_track, 2, self, tables);

Expand Down

0 comments on commit 62032aa

Please sign in to comment.