Skip to content

Commit d49a25e

Browse files
committed
fix: apply suggestions from code 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: 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: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 85717ed commit d49a25e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/blas/ext/base/dcartesian-power/src

lib/node_modules/@stdlib/blas/ext/base/dcartesian-power/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @param strideOut2 stride length between elements within each output pair
3535
*/
3636
void API_SUFFIX(stdlib_strided_dcartesian_power)( const CBLAS_INT N, const CBLAS_INT k, const double *X, const CBLAS_INT strideX, double *Out, const CBLAS_INT strideOut1, const CBLAS_INT strideOut2 ) {
37-
int64_t len = (int64_t)stdlib_base_pow( N, k );
37+
int64_t len = stdlib_base_pow( N, k );
3838
CBLAS_INT ox = stdlib_strided_stride2offset( N, strideX );
3939
CBLAS_INT oo = stdlib_strided_stride2offset( len, strideOut1 ) + stdlib_strided_stride2offset( k, strideOut2 );
4040
API_SUFFIX(stdlib_strided_dcartesian_power_ndarray)( N, k, X, strideX, ox, Out, strideOut1, strideOut2, oo );
@@ -66,7 +66,7 @@ void API_SUFFIX(stdlib_strided_dcartesian_power_ndarray)( const CBLAS_INT N, con
6666
if ( N <= 0 || k <= 0 ) {
6767
return;
6868
}
69-
len = (int64_t)stdlib_base_pow( N, k );
69+
len = stdlib_base_pow( N, k );
7070
io = offsetOut;
7171
for ( i = 0; i < len; i++ ) {
7272
t = i;

0 commit comments

Comments
 (0)