mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Merge pull request #200667 from wegank/to-base-digits-type
lib.trivial.toBaseDigits: type check
This commit is contained in:
commit
b0a6ab09d5
1 changed files with 2 additions and 0 deletions
|
@ -514,6 +514,8 @@ rec {
|
|||
in
|
||||
[r] ++ go q;
|
||||
in
|
||||
assert (isInt base);
|
||||
assert (isInt i);
|
||||
assert (base >= 2);
|
||||
assert (i >= 0);
|
||||
lib.reverseList (go i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue