Skip to content

Commit 272b2fd

Browse files
fix: C errors
1 parent 15e16c8 commit 272b2fd

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/node_modules/@stdlib/math/base/special/log10f/lib/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var kernelLog1p = require( '@stdlib/math/base/special/kernel-log1p' );
4747

4848
// VARIABLES //
4949

50-
var TWO25 = 3.3554432000e+07; // 0x4c000000
50+
var TWO25 = 3.3554432000e+07; // 0x4c000000
5151
var IVLN10HI = 4.3432617188e-01; // 0x3ede6000
5252
var IVLN10LO = -3.1689971365e-05; // 0xb804ead9
5353
var LOG10_2HI = 3.0102920532e-01; // 0x3e9a2080
@@ -114,7 +114,7 @@ function log10f( x ) {
114114

115115
if ( hx < HIGH_MIN_NORMAL_EXP ) {
116116
// Case: x < 2**-1022
117-
if ( ( ( hx & ABS_MASK ) | lx ) === 0 ) {
117+
if ( ( ( hx & ABS_MASK ) ) === 0 ) {
118118
return NINF;
119119
}
120120
k -= 25|0; // asm type annotation

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ float stdlib_base_log10f( const float x ) {
123123

124124
hi = f - hfsq;
125125
stdlib_base_float32_to_word( hi, &hx );
126-
ihx = (int32_t)hx;
127126
stdlib_base_float32_from_word( hx& STDLIB_CONSTANT_FLOAT64_HIGH_WORD_ABS_MASK, &hi );
128127
lo = ( f - hi ) - hfsq + R;
129128
return ( y * LOG10_2LO ) + ( ( lo + hi ) * IVLN10LO ) + ( lo * IVLN10HI ) + ( hi * IVLN10HI ) + ( y * LOG10_2HI );

lib/node_modules/@stdlib/math/base/special/log10f/test/test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var tape = require( 'tape' );
2525
var isnan = require( '@stdlib/math/base/assert/is-nan' );
2626
var PINF = require( '@stdlib/constants/float32/pinf' );
2727
var NINF = require( '@stdlib/constants/float32/ninf' );
28-
tryRequire = require( '@stdlib/utils/try-require' );
28+
var tryRequire = require( '@stdlib/utils/try-require' );
2929
var EPS = require( '@stdlib/constants/float32/eps' );
3030
var absf = require( '@stdlib/math/base/special/absf' );
3131
var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );

0 commit comments

Comments
 (0)