# std: make math.clamp work for common uses, remove automatic bounds swapping · gitcafe/zig

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

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

Visibility: public

Requested revision: 157f566f2dd9c8d694270f5b7fcb8525834d7646

Requested commit: 157f566f2dd9c8d694270f5b7fcb8525834d7646

Commit: 157f566f2dd9c8d694270f5b7fcb8525834d7646

Tree: 3eb6a423433195fc99910f6b20698f0646b47830

Author: Andrius Mitkus

Committer: Andrew Kelley

## Message

```
std: make math.clamp work for common uses, remove automatic bounds swapping

```

## Parents

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

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