From 353a4be7e84fdc101318215bdcc8a7e780d737fe Mon Sep 17 00:00:00 2001 From: dundargoc Date: Sun, 12 Nov 2023 13:13:58 +0100 Subject: build: remove PVS We already have an extensive suite of static analysis tools we use, which causes a fair bit of redundancy as we get duplicate warnings. PVS is also prone to give false warnings which creates a lot of work to identify and disable. --- src/nvim/math.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/nvim/math.c') diff --git a/src/nvim/math.c b/src/nvim/math.c index 31c6b5af69..d51a3947ae 100644 --- a/src/nvim/math.c +++ b/src/nvim/math.c @@ -1,6 +1,3 @@ -// This is an open source non-commercial project. Dear PVS-Studio, please check -// it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com - // uncrustify:off #include // uncrustify:on -- cgit From ac1113ded5f8f09dd99a9894d7a7e795626fb728 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Mon, 13 Nov 2023 23:40:37 +0100 Subject: refactor: follow style guide - reduce variable scope - prefer initialization over declaration and assignment --- src/nvim/math.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/nvim/math.c') diff --git a/src/nvim/math.c b/src/nvim/math.c index d51a3947ae..96ff1bef10 100644 --- a/src/nvim/math.c +++ b/src/nvim/math.c @@ -13,10 +13,9 @@ int xfpclassify(double d) { uint64_t m; - int e; memcpy(&m, &d, sizeof(m)); - e = 0x7ff & (m >> 52); + int e = 0x7ff & (m >> 52); m = 0xfffffffffffffULL & m; switch (e) { -- cgit