summaryrefslogtreecommitdiff
path: root/src/regexp.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-20 13:38:33 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-20 13:38:33 +0100
commit155f2d1451949d1124bfd6ba9c55be6bd74bab75 (patch)
treeb62202254ef079aafcf30eaa01baf694d3f9b0a6 /src/regexp.c
parent73171ba4344e17484699d11c65d57fb1f4de572a (diff)
downloadvim-git-155f2d1451949d1124bfd6ba9c55be6bd74bab75.tar.gz
patch 8.2.5141: using "volatile int" in a signal handler might be wrongv8.2.5141
Problem: Using "volatile int" in a signal handler might be wrong. Solution: Use "volatile sig_atomic_t".
Diffstat (limited to 'src/regexp.c')
-rw-r--r--src/regexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regexp.c b/src/regexp.c
index 32661f6d8..3c1334ddd 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -21,8 +21,8 @@
#endif
#ifdef FEAT_RELTIME
-static int dummy_timeout_flag = 0;
-static volatile int *timeout_flag = &dummy_timeout_flag;
+static sig_atomic_t dummy_timeout_flag = 0;
+static volatile sig_atomic_t *timeout_flag = &dummy_timeout_flag;
#endif
/*