From bb93f04d87cfc093757dc712905e1fe3fbe65f58 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 5 Dec 2024 14:27:58 -0300 Subject: Refactoring of 'luaH_newkey' Function broke in two and some checks moved to the caller. (We may want to call it without the checks.) --- lobject.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 4a0835a8..8c06a224 100644 --- a/lobject.h +++ b/lobject.h @@ -750,10 +750,9 @@ typedef union Node { /* copy a value into a key */ -#define setnodekey(L,node,obj) \ +#define setnodekey(node,obj) \ { Node *n_=(node); const TValue *io_=(obj); \ - n_->u.key_val = io_->value_; n_->u.key_tt = io_->tt_; \ - checkliveness(L,io_); } + n_->u.key_val = io_->value_; n_->u.key_tt = io_->tt_; } /* copy a value from a key */ -- cgit v1.2.3-55-g6feb