<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<p>Hi, Sergey</p>
<p>thanks for the patch! LGTM<br>
</p>
<div class="moz-cite-prefix">On 19.11.2024 13:58, Sergey Kaplun
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20241119105809.18234-1-skaplun@tarantool.org">
<pre class="moz-quote-pre" wrap="">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.
---
Branch: <a class="moz-txt-link-freetext" href="https://github.com/tarantool/luajit/tree/skaplun/fix-test-complex-double">https://github.com/tarantool/luajit/tree/skaplun/fix-test-complex-double</a>
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 aa95b57b..955383d7 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; }
</pre>
</blockquote>
</body>
<lt-container></lt-container>
</html>