Skip to content

Commit 40e4d5a

Browse files
p-lindbergCoreyKaylor
authored andcommitted
Throw on overflow
1 parent 6788906 commit 40e4d5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)