From 4f83abdb507eeebe5d1051c46d793b236da68ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E6=B7=9E=E4=B8=B0?= <50102735+Arctic2333@users.noreply.github.com> Date: Mon, 2 Dec 2019 11:16:03 +0800 Subject: [PATCH] hash_search --- search/hash_search.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/search/hash_search.cpp b/search/hash_search.cpp index cd122fe2c..68c361384 100644 --- a/search/hash_search.cpp +++ b/search/hash_search.cpp @@ -25,8 +25,8 @@ void create_list(int key) { if (p != NULL) { n -> next = p; hashtab[index].next = n; - } else - hashtab[index].next = n; + } else { + hashtab[index].next = n; } } int hash_search(int key) { link pointer;