mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
Merge pull request #200667 from wegank/to-base-digits-type
lib.trivial.toBaseDigits: type check
This commit is contained in:
commit
b0a6ab09d5
@ -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…
Reference in New Issue
Block a user