summaryrefslogtreecommitdiff
path: root/source3/tdb/tdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/tdb/tdb.c')
-rw-r--r--source3/tdb/tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c
index 7a0c566f41..5f30db21e4 100644
--- a/source3/tdb/tdb.c
+++ b/source3/tdb/tdb.c
@@ -199,7 +199,7 @@ static int tdb_oob(TDB_CONTEXT *tdb, tdb_off offset)
if ((offset <= tdb->map_size) || (tdb->fd == -1)) return 0;
fstat(tdb->fd, &st);
- if (st.st_size <= (ssize_t)offset) {
+ if (st.st_size <= (size_t)offset) {
tdb->ecode = TDB_ERR_IO;
return -1;
}