Skip to content

Commit 1a5c92c

Browse files
committed
Throw on overflow
1 parent 314ab84 commit 1a5c92c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/LightningDB/LightningCursor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ public MDBResultCode Renew(LightningTransaction txn)
524524
public MDBResultCode Count(out long value)
525525
{
526526
var result = mdb_cursor_count(_handle, out var count);
527-
value = (long)count;
527+
value = checked((long)count);
528528
return result;
529529
}
530530

0 commit comments

Comments
 (0)