Skip to content

Commit 378c108

Browse files
committed
fix: ensure suffix is appended for non-integer values
1 parent 5564766 commit 378c108

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/math/base/tools/evalpoly-compile-c/lib

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/math/base/tools/evalpoly-compile-c/lib/main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,9 @@ function compile( c, options ) {
120120
// If more than one coefficient, apply Horner's method...
121121
horner = c[ 0 ].toString();
122122
if ( isInteger( c[ 0 ] ) ) {
123-
horner += '.0{{dtype_suffix}}';
123+
horner += '.0';
124124
}
125+
horner += '{{dtype_suffix}}';
125126
for ( i = 1; i < n; i++ ) {
126127
horner += ' + (x * ';
127128
if ( i < m ) {

0 commit comments

Comments
 (0)