Skip to content

Commit e5e1752

Browse files
committed
fix: fix linting errors in c files
--- 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: passed - task: lint_c_examples status: na - task: lint_c_benchmarks status: passed - 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 851d6f7 commit e5e1752

File tree

2 files changed

+2
-3
lines changed
  • lib/node_modules/@stdlib/math/base/special/rempio2f

2 files changed

+2
-3
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ static double benchmark( void ) {
9393
float x[ 100 ];
9494
double elapsed;
9595
float rem;
96-
int32_t n;
9796
double t;
9897
int i;
9998

@@ -103,7 +102,7 @@ static double benchmark( void ) {
103102

104103
t = tic();
105104
for ( i = 0; i < ITERATIONS; i++ ) {
106-
n = stdlib_base_rempio2f( x[ i % 100 ], &rem );
105+
stdlib_base_rempio2f( x[ i % 100 ], &rem );
107106
if ( isnanf( rem ) ) {
108107
printf( "should not return NaN\n" );
109108
break;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static int32_t rempio2f_kernel(const float* x, float* rem, int32_t e0, int32_t n
172172
}
173173

174174
jz = jk;
175-
recompute:
175+
176176
// Distill `Q[]` into `IQ[]` in reverse order:
177177
z = Q[jz];
178178
for (i = 0, j = jz; j > 0; i++, j--) {

0 commit comments

Comments
 (0)