# std: Fix two bugs in bigint pow · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/dbc11be038ddb7b9a04535d069a9ee4001f91b51)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: dbc11be038ddb7b9a04535d069a9ee4001f91b51

Requested commit: dbc11be038ddb7b9a04535d069a9ee4001f91b51

Commit: dbc11be038ddb7b9a04535d069a9ee4001f91b51

Tree: 58904c9ac86d9ba08dee741be1d58b0236ea6a23

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
std: Fix two bugs in bigint pow

* Correctly scan all the exponent bits, this caused the incorrect result
  to be computed for exponents being powers of two.
* Allocate enough limbs to make llmulacc stop whining.

```

## Parents

- [7f7e2d608adb81cd00e54fd7fe5e7035a890565f](https://git.cafe/gitcafe/zig/commit/7f7e2d608adb81cd00e54fd7fe5e7035a890565f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/dbc11be038ddb7b9a04535d069a9ee4001f91b51?format=markdown)
