diff options
author | Philip Kelley <phkelley@hotmail.com> | 2013-01-08 17:10:33 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2013-01-08 19:53:19 +0400 |
commit | 48aae611fa0592e57d24d218e1761f23374699b1 (patch) | |
tree | af50a222334ea5b001221b55e04bd625b4a97c11 /LibGit2Sharp/TreeChanges.cs | |
parent | 0a0d15772969342b0ef54aab63126254876c4da0 (diff) |
Improve perf and correctness of UTF-8 marshaling
Diffstat (limited to 'LibGit2Sharp/TreeChanges.cs')
-rw-r--r-- | LibGit2Sharp/TreeChanges.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGit2Sharp/TreeChanges.cs b/LibGit2Sharp/TreeChanges.cs index 1946364a..876a7b4c 100644 --- a/LibGit2Sharp/TreeChanges.cs +++ b/LibGit2Sharp/TreeChanges.cs @@ -51,7 +51,7 @@ namespace LibGit2Sharp private int PrintCallBack(GitDiffDelta delta, GitDiffRange range, GitDiffLineOrigin lineorigin, IntPtr content, UIntPtr contentlen, IntPtr payload) { - string formattedoutput = Utf8Marshaler.FromNative(content, (uint)contentlen); + string formattedoutput = Utf8Marshaler.FromNative(content, (int)contentlen); TreeEntryChanges currentChange = AddFileChange(delta, lineorigin); AddLineChange(currentChange, lineorigin); |