Skip to content

Commit 74a593e

Browse files
Merge pull request #165 from nefarius/nefarius/bugfix/get-info-integer-overflow
Fixed 32-bit integer overflow in GetInfoAsync()
2 parents e35c992 + 1f70e51 commit 74a593e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CouchDB.Driver/Types/Sizes.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ public sealed class Sizes
1111
/// The size of the database file on disk in bytes. Views indexes are not included in the calculation.
1212
/// </summary>
1313
[JsonProperty("file")]
14-
public int File { get; internal set; }
14+
public long File { get; internal set; }
1515

1616
/// <summary>
1717
/// The uncompressed size of database contents in bytes.
1818
/// </summary>
1919
[JsonProperty("external")]
20-
public int External { get; internal set; }
20+
public long External { get; internal set; }
2121

2222
/// <summary>
2323
/// The size of live data inside the database, in bytes.
2424
/// </summary>
2525
[JsonProperty("active")]
26-
public int Active { get; internal set; }
26+
public long Active { get; internal set; }
2727
}
2828
}

0 commit comments

Comments
 (0)