diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-02-26 12:51:46 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-02-26 13:32:26 +0000 |
commit | d642742956728f4cd11d35f7d64bc61ba972dab3 (patch) | |
tree | 0cc01a33d617803df28cdeb1fd6eb52288208db8 /src/lua/lua_tensor.c | |
parent | f6cdd27f8babf5bdca939fe84e2bd7ab86e4f17d (diff) | |
download | rspamd-d642742956728f4cd11d35f7d64bc61ba972dab3.tar.gz rspamd-d642742956728f4cd11d35f7d64bc61ba972dab3.zip |
[Minor] Mark `c` in Kahan sum volatile
Diffstat (limited to 'src/lua/lua_tensor.c')
-rw-r--r-- | src/lua/lua_tensor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_tensor.c b/src/lua/lua_tensor.c index 9731b17c7..76756e148 100644 --- a/src/lua/lua_tensor.c +++ b/src/lua/lua_tensor.c @@ -637,7 +637,7 @@ static inline rspamd_tensor_num_t mean_vec (rspamd_tensor_num_t *x, int n) { rspamd_tensor_num_t s = 0; - rspamd_tensor_num_t c = 0; + volatile rspamd_tensor_num_t c = 0; /* https://en.wikipedia.org/wiki/Kahan_summation_algorithm */ for (int i = 0; i < n; i ++) { |