Skip to content

Commit 678f471

Browse files
committed
refactor: remove redundant cast when generating integral part
--- 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: 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 56cd0bf commit 678f471

File tree

1 file changed

+0
-2
lines changed
  • lib/node_modules/@stdlib/math/base/special/modf/src

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ void stdlib_base_modf( const double x, double* integral, double* frac ) {
9999
high &= ( ~i );
100100

101101
// Generate the integral part:
102-
j = i;
103102
stdlib_base_float64_from_words( high, 0, &j );
104103
*integral = j;
105104
*frac = x - j;
@@ -124,7 +123,6 @@ void stdlib_base_modf( const double x, double* integral, double* frac ) {
124123
low &= ( ~i );
125124

126125
// Generate the integral part:
127-
j = i;
128126
stdlib_base_float64_from_words( high, low, &j );
129127
*integral = j;
130128
*frac = x - j;

0 commit comments

Comments
 (0)