Skip to content

Commit 7d31eac

Browse files
make-github-pseudonymous-againAurélien Ooms
authored and
Aurélien Ooms
committed
🐛 fix(_pow_double): Use correct API method.
1 parent 9f9c53d commit 7d31eac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Integer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
stringify , convert , _trim_positive ,
55
_alloc , _copy , _zeros ,
66
_jz , _cmp , _eq ,
7-
add , _sub , mul , _idivmod , _powd ,
7+
add , _sub , mul , _idivmod , _pow_double ,
88
_increment ,
99
} from '@aureooms/js-integer-big-endian' ;
1010

@@ -167,7 +167,7 @@ export class Integer {
167167
const a = this.limbs ;
168168
const c = _zeros( Math.max( 1 , a.length * x ) ) ;
169169

170-
_powd( this.base , x , a , 0 , a.length , c , 0 , c.length ) ;
170+
_pow_double( this.base , x , a , 0 , a.length , c , 0 , c.length ) ;
171171

172172
return new Integer( this.base , is_negative , c ) ;
173173

0 commit comments

Comments
 (0)