riyueguang
6fc8d0dc64
refactor: use the built-in max/min to simplify the code ( #24112 )
...
Signed-off-by: riyueguang <rustruby@outlook.com>
2025-03-24 17:35:40 +00:00
Tyler
edcb427a6e
chore: set math to main ( #23697 )
2025-02-14 07:05:23 -10:00
mergify[bot]
535567e231
fix: RelativePow now returns 1 when 0^0 (backport #18211 ) ( #18216 )
...
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2023-10-23 13:45:21 +00:00
Julien Robert
c452721442
style: add gci linter ( #16758 )
...
Co-authored-by: Jacob Gadikian <faddat@users.noreply.github.com>
2023-06-29 09:46:37 +00:00
Julien Robert
55373cb614
feat: add uint IsNil method ( #13381 )
2022-09-25 09:19:50 +00:00
Emmanuel T Odeke
54d764b9a8
fix: math: fix Uint.Unmarshal's lack of negative value checking ( #11996 )
...
This change adds a negative value check to Uint.Unmarshal,
which coincidentally is fixed by refactoring for code reuse.
While here, added tests to ensure we don't regress.
Fixes #11995
2022-05-19 20:28:06 +00:00
Jacob Gadikian
55054282d2
chore: gofumpt ( #11839 )
...
* fumpt using main not master...
* be more descriptive
* fumpt
* fix nits
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-05-19 10:55:27 +02:00
Aleksandr Bezobchuk
51fd676950
chore: update module path for math module ( #11821 )
2022-04-29 10:02:55 -04:00
Aleksandr Bezobchuk
4f04beae34
refactor!: create math go sub module ( #11788 )
2022-04-28 14:05:21 -04:00