Skip to content

Commit 8537316

Browse files
committed
test: fix Clang warning in LuaJIT-tests
This patch fixes the warning in <libctest.c> produced by Clang: | warning: plain '_Complex' requires a type specifier; assuming | '_Complex double' by adding the `double` type specifier where it is needed.
1 parent 84c968d commit 8537316

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/LuaJIT-tests/src/libctest.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ LUA_API double call_ividi(int a, ...)
7373
}
7474

7575
#ifdef complex
76-
LUA_API complex call_dd_cd(double a, double b) { return a+b*2i; }
77-
LUA_API complex call_cd(complex a) { return a+1-2i; }
78-
LUA_API complex call_cdcd(complex a, complex b) { return a+b; }
76+
LUA_API complex double call_dd_cd(double a, double b) { return a+b*2i; }
77+
LUA_API complex double call_cd(complex double a) { return a+1-2i; }
78+
LUA_API complex double call_cdcd(complex double a, complex double b) { return a+b; }
7979

8080
LUA_API complex float call_ff_cf(float a, float b) { return a+b*2i; }
8181
LUA_API complex float call_cf(complex float a) { return a+1-2i; }

0 commit comments

Comments
 (0)