Skip to content

Commit

Permalink
Use int instead of Int32
Browse files Browse the repository at this point in the history
  • Loading branch information
caguiclajmg committed Jul 1, 2021
1 parent 792f45a commit d024c7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions WanaKanaSharp/Utility/Trie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,20 @@ public void Remove(params TKey[] keys)
}
}

public void Traverse(Action<Node> action, Int32 maxDepth = -1)
public void Traverse(Action<Node> action, int maxDepth = -1)
{
Traverse(action, 0, maxDepth);
}

public void TraverseChildren(Action<Node> action, Int32 maxDepth = 0)
public void TraverseChildren(Action<Node> action, int maxDepth = 0)
{
foreach (var child in this)
{
child.Traverse(action, 0, maxDepth);
}
}

void Traverse(Action<Node> action, Int32 currentDepth, Int32 maxDepth)
void Traverse(Action<Node> action, int currentDepth, int maxDepth)
{
action(this);

Expand Down
4 changes: 2 additions & 2 deletions WanaKanaSharp/WanaKanaSharp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ public static string[] Tokenize(string input, bool compact = false, bool detaile

var tokens = new List<string>();

Int32 position = 0;
int position = 0;
do
{
Int32 start = position;
int start = position;
TokenType type = GetTokenType(input[position]);

do
Expand Down

0 comments on commit d024c7b

Please sign in to comment.