Skip to content

Commit a0ba5a9

Browse files
committed
chore: apply suggestions from review
--- 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: passed - 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: na - 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 f0a2a4c commit a0ba5a9

File tree

2 files changed

+4
-2
lines changed
  • lib/node_modules/@stdlib/math/base/special/sincosf

2 files changed

+4
-2
lines changed

lib/node_modules/@stdlib/math/base/special/sincosf/lib/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@
3939
* // returns [ NaN, NaN ]
4040
*
4141
* @example
42+
* var Float32Array = require( '@stdlib/array/float32' );
4243
* var sincosf = require( '@stdlib/math/base/special/sincosf' );
4344
*
44-
* var out = new Float64Array( 2 );
45+
* var out = new Float32Array( 2 );
4546
*
4647
* var v = sincosf.assign( 0.0, out, 1, 0 );
47-
* // return <Float64Array>[ ~0.0, ~1.0 ]
48+
* // return <Float32Array>[ ~0.0, ~1.0 ]
4849
*
4950
* var bool = ( v === out );
5051
* // returns true

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ void stdlib_base_sincosf( const float x, float* sine, float* cosine ) {
9696
if ( (int32_t)x == 0 ) {
9797
*sine = x;
9898
*cosine = 1.0f;
99+
return;
99100
}
100101
}
101102
stdlib_base_kernel_sincosf( (double)x, sine, cosine );

0 commit comments

Comments
 (0)