# std.math.log10: handle comptime_int inputs correctly · gitcafe/zig

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

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

Visibility: public

Requested revision: 2f8e66080580c1ef3814cc4e2f27ae418d8d6e0c

Requested commit: 2f8e66080580c1ef3814cc4e2f27ae418d8d6e0c

Commit: 2f8e66080580c1ef3814cc4e2f27ae418d8d6e0c

Tree: 65c921de0d7f903e12be55148a5bfd3be4cce24a

Author: hemisputnik

Committer: Andrew Kelley

## Message

```
std.math.log10: handle comptime_int inputs correctly

also add a few tests for comptime types

fixes #31333

```

## Parents

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

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