forked from mirrors/nixpkgs
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 a new issue