summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-02-10 21:56:36 +1100
committerMichael Cahill <michael.cahill@mongodb.com>2016-02-10 21:56:36 +1100
commitcdcea07d2b98ec7c33cde3b0f60eff68e0231470 (patch)
treea5a92fa6623473ed31aa1d6136276a4527a76f26
parent27763ba51a9f4dc8cc35e22e3a481219fa2d2d0b (diff)
downloadmongo-cdcea07d2b98ec7c33cde3b0f60eff68e0231470.tar.gz
WT-2390 Fix OS X warning.
src/conn/conn_log.c:636:16: error: implicit conversion loses integer precision: 'wt_off_t' (aka 'long long') to 'uint32_t' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32] slot->slot_last_offset;
-rw-r--r--src/conn/conn_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn/conn_log.c b/src/conn/conn_log.c
index 60f46288072..fa3928a8539 100644
--- a/src/conn/conn_log.c
+++ b/src/conn/conn_log.c
@@ -633,7 +633,7 @@ restart:
if (slot->slot_start_lsn.l.offset !=
slot->slot_last_offset)
slot->slot_start_lsn.l.offset =
- slot->slot_last_offset;
+ (uint32_t)slot->slot_last_offset;
log->write_start_lsn = slot->slot_start_lsn;
log->write_lsn = slot->slot_end_lsn;
WT_ERR(__wt_cond_signal(