summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2024-04-01 17:01:07 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2024-04-01 17:07:04 +0200
commit8bddf7f93e671bccec8103cecd99629bcc05f071 (patch)
tree9f913f3ba38dcb0724efc424d5b31059b4b6e193 /src/json.c
parentdbfe3cae2d9497fb14c83f26425f9421d1ef57cb (diff)
downloademacs-8bddf7f93e671bccec8103cecd99629bcc05f071.tar.gz
emacs-8bddf7f93e671bccec8103cecd99629bcc05f071.tar.bz2
emacs-8bddf7f93e671bccec8103cecd99629bcc05f071.zip
; * src/json.c (json_parse_object): Call make_hash_table directly.
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/json.c b/src/json.c
index c64d44b4bac..486253581ff 100644
--- a/src/json.c
+++ b/src/json.c
@@ -1599,8 +1599,7 @@ json_parse_object (struct json_parser *parser)
case json_object_hashtable:
{
EMACS_INT value = (parser->object_workspace_current - first) / 2;
- result = CALLN (Fmake_hash_table, QCtest, Qequal, QCsize,
- make_fixed_natnum (value));
+ result = make_hash_table (&hashtest_equal, value, Weak_None, false);
struct Lisp_Hash_Table *h = XHASH_TABLE (result);
for (size_t i = first; i < parser->object_workspace_current; i += 2)
{