Skip to content

Commit

Permalink
Just use integer
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Nov 28, 2023
1 parent 58c3ff8 commit 0bdadec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/thor.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,8 @@ SEXP r_thor_mput(SEXP r_txn, SEXP r_dbi, SEXP r_key, SEXP r_value,
len_key = sexp_to_mdb_vals(r_key, "key", &key),
len_value = sexp_to_mdb_vals(r_value, "value", &value);
if (len_key != len_value) {
Rf_error("Expected %zu values but recieved %zu", len_key, len_value);
Rf_error("Expected %d values but recieved %d",
(int)len_key, (int)len_value);
}

MDB_env *env = mdb_txn_env(txn);
Expand Down

0 comments on commit 0bdadec

Please sign in to comment.