Skip to content

Commit 79c1416

Browse files
Therzoknulltoken
authored andcommitted
Fix truncation of Blob.Size
Aligns Blob.Size return type with GitObjectMetadata.Size.
1 parent b24a00c commit 79c1416

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/Blob.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ internal Blob(Repository repo, ObjectId id)
3232
/// can be used.
3333
/// </para>
3434
/// </summary>
35-
public virtual int Size { get { return (int)lazySize.Value; } }
35+
public virtual long Size { get { return lazySize.Value; } }
3636

3737
/// <summary>
3838
/// Determine if the blob content is most certainly binary or not.

0 commit comments

Comments
 (0)