Skip to content

Commit a894d13

Browse files
chore: corrected some linting
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: missing_dependencies - task: lint_c_examples status: na - task: lint_c_benchmarks status: missing_dependencies - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent d70383e commit a894d13

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

lib/node_modules/@stdlib/math/base/special/cflipsignf/benchmark/c/native/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@ static double benchmark( void ) {
103103
stdlib_complex64_t y;
104104

105105
for ( i = 0; i < 100; i++ ) {
106-
v[ i ] = ( 1000.0f * rand_float() ) - 500.0f;
106+
v[ i ] = ( 1000.0f*rand_float() ) - 500.0f;
107107
x[ i ] = stdlib_complex64( v[ i ], v[ i ] );
108108
}
109109

110110
t = tic();
111111
for ( i = 0; i < ITERATIONS; i++ ) {
112-
y = stdlib_base_cflipsignf( x[ i % 100 ], -v[ i % 100 ] );
112+
y = stdlib_base_cflipsignf( x[ i%100 ], -v[ i%100 ] );
113113
stdlib_complex64_reim( y, &re, &im );
114114
if ( re != re ) {
115115
printf( "unexpected result\n" );

lib/node_modules/@stdlib/math/base/special/cflipsignf/src/addon.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@
1919
#include "stdlib/math/base/special/cflipsignf.h"
2020
#include "stdlib/math/base/napi/binary.h"
2121

22-
// cppcheck-suppress shadowFunction
2322
STDLIB_MATH_BASE_NAPI_MODULE_CF_C( stdlib_base_cflipsignf )

lib/node_modules/@stdlib/math/base/special/cflipsignf/src/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@
3535
*
3636
* stdlib_complex64_t z = stdlib_complex64( 3.5, -2.5 );
3737
*
38-
* stdlib_complex64_t out = stdlib_base_cflipsignf( z, -1.0 );
38+
* stdlib_complex64_t y = stdlib_base_cflipsignf( z, -1.0 );
3939
*
40-
* float re = stdlib_complex64_real( out );
40+
* float re = stdlib_complex64_real( y );
4141
* // returns -3.5
4242
*
43-
* float im = stdlib_complex64_imag( out );
43+
* float im = stdlib_complex64_imag( y );
4444
* // returns 2.5
4545
*/
4646
stdlib_complex64_t stdlib_base_cflipsignf( const stdlib_complex64_t z, const float y ) {
47-
float re ;
48-
float im ;
47+
float re;
48+
float im;
4949

5050
stdlib_complex64_reim( z, &re, &im );
5151

0 commit comments

Comments
 (0)