From 1ab4d0886152e8fb0e41a0b288bcc3e59ba01386 Mon Sep 17 00:00:00 2001 From: Ben Edgington Date: Fri, 5 Feb 2021 15:29:47 +0000 Subject: [PATCH] Use `sizeof` like the operator it is --- src/fft_fr_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fft_fr_test.c b/src/fft_fr_test.c index d984912..d98f203 100644 --- a/src/fft_fr_test.c +++ b/src/fft_fr_test.c @@ -100,7 +100,7 @@ void inverse_fft(void) { TEST_CHECK(fft_fr(out, data, &fs, true, fs.max_width) == C_KZG_OK); // Verify against the known result, `inv_fft_expected` - int n = sizeof(inv_fft_expected) / sizeof(inv_fft_expected[0]); + int n = sizeof inv_fft_expected / sizeof inv_fft_expected[0]; TEST_CHECK(n == fs.max_width); for (int i = 0; i < n; i++) { blst_fr expected;