Merge pull request #200667 from wegank/to-base-digits-type

lib.trivial.toBaseDigits: type check
This commit is contained in:
Silvan Mosberger 2022-11-11 19:35:33 +01:00 committed by GitHub
commit b0a6ab09d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);