Verified Commit 55429a1e authored by LeoFun01's avatar LeoFun01

Update `ToString` args type

parent 72201f21
......@@ -177,7 +177,7 @@ public struct PermutationByte : IPermutation<P>
public override string ToString() {
return _toString(_count);
}
public string ToString(byte minLength) {
public string ToString(int minLength) {
if(minLength > _count) minLength = _count;
byte t = Value;
byte i = _count;
......@@ -186,7 +186,7 @@ public struct PermutationByte : IPermutation<P>
if(minLength < i) minLength = i;
return _toString(++minLength);
}
private string _toString(byte length) {
private string _toString(int length) {
StringBuilder sb = new StringBuilder(length, length);
length <<= _s;
byte t = Value;
......
......@@ -184,7 +184,7 @@ public struct PermutationInt32 : IPermutation<P>
public override string ToString() {
return _toString(_count);
}
public string ToString(byte minLength) {
public string ToString(int minLength) {
if(minLength > _count) minLength = _count;
int t = Value;
byte i = _count;
......@@ -193,7 +193,7 @@ public struct PermutationInt32 : IPermutation<P>
if(minLength < i) minLength = i;
return _toString(++minLength);
}
private string _toString(byte length) {
private string _toString(int length) {
StringBuilder sb = new StringBuilder(length, length);
length <<= _s;
int t = Value;
......
......@@ -189,7 +189,7 @@ public struct PermutationInt64 : IPermutation<P>
public override string ToString() {
return _toString(_count);
}
public string ToString(byte minLength) {
public string ToString(int minLength) {
if(minLength > _count) minLength = _count;
long t = Value;
byte i = _count;
......@@ -198,7 +198,7 @@ public struct PermutationInt64 : IPermutation<P>
if(minLength < i) minLength = i;
return _toString(++minLength);
}
private string _toString(byte length) {
private string _toString(int length) {
StringBuilder sb = new StringBuilder(length, length);
length <<= _s;
long t = Value;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment