From fadc02a2a57755fa1342b1b44c2ceab3046125fc Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Fri, 27 Jan 2023 21:03:12 +0000 Subject: patch 9.0.1251: checking returned value of ga_grow() is inconsistent Problem: Checking returned value of ga_grow() is inconsistent. Solution: Check for FAIL instaed of "not OK". (Yegappan Lakshmanan, closes #11897) --- src/digraph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/digraph.c') diff --git a/src/digraph.c b/src/digraph.c index ac51d50a79..fb45c15248 100644 --- a/src/digraph.c +++ b/src/digraph.c @@ -1682,7 +1682,7 @@ registerdigraph(int char1, int char2, int n) } // Add a new digraph to the table. - if (ga_grow(&user_digraphs, 1) != OK) + if (ga_grow(&user_digraphs, 1) == FAIL) return; dp = (digr_T *)user_digraphs.ga_data + user_digraphs.ga_len; -- cgit v1.2.3