diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-06-20 13:38:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-20 13:38:33 +0100 |
commit | 155f2d1451949d1124bfd6ba9c55be6bd74bab75 (patch) | |
tree | b62202254ef079aafcf30eaa01baf694d3f9b0a6 /src/regexp.c | |
parent | 73171ba4344e17484699d11c65d57fb1f4de572a (diff) | |
download | vim-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.c | 4 |
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 /* |