From 2dd20997d8445662dbfb30a73c9f2a22825221fc Mon Sep 17 00:00:00 2001 From: Sergey Kaplun Date: Tue, 19 Nov 2024 12:49:04 +0300 Subject: [PATCH] test: fix Clang warning in LuaJIT-tests This patch fixes the warning in produced by Clang: | warning: plain '_Complex' requires a type specifier; assuming | '_Complex double' by adding the `double` type specifier where it is needed. Reviewed-by: Maxim Kokryashkin Reviewed-by: Sergey Bronnikov Signed-off-by: Sergey Kaplun (cherry picked from commit 3cd5078a2564bfd8895434f4bb18487f87c19e9c) --- test/LuaJIT-tests/src/libctest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/LuaJIT-tests/src/libctest.c b/test/LuaJIT-tests/src/libctest.c index aa95b57b18..955383d7ca 100644 --- a/test/LuaJIT-tests/src/libctest.c +++ b/test/LuaJIT-tests/src/libctest.c @@ -73,9 +73,9 @@ LUA_API double call_ividi(int a, ...) } #ifdef complex -LUA_API complex call_dd_cd(double a, double b) { return a+b*2i; } -LUA_API complex call_cd(complex a) { return a+1-2i; } -LUA_API complex call_cdcd(complex a, complex b) { return a+b; } +LUA_API complex double call_dd_cd(double a, double b) { return a+b*2i; } +LUA_API complex double call_cd(complex double a) { return a+1-2i; } +LUA_API complex double call_cdcd(complex double a, complex double b) { return a+b; } LUA_API complex float call_ff_cf(float a, float b) { return a+b*2i; } LUA_API complex float call_cf(complex float a) { return a+1-2i; }