mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
lib.trivial.toBaseDigits: type check
This commit is contained in:
parent
a1f49c048b
commit
343749453e
@ -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