diff options
author | sueloverso <sue@mongodb.com> | 2016-08-03 12:02:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-03 12:02:50 -0400 |
commit | aede19f49ac1f1b1fddf3749886381df218b223a (patch) | |
tree | 9c9f42b771d237713259c12cf517a0c05cdc4acb /src/include/btree.i | |
parent | 689a7d2955b4220c497112c9fc6ef38ff909e5d5 (diff) | |
download | mongo-aede19f49ac1f1b1fddf3749886381df218b223a.tar.gz |
WT-2764 Compilation fixes size_t -> uint64_t on OSX. (#2927)
Diffstat (limited to 'src/include/btree.i')
-rw-r--r-- | src/include/btree.i | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/btree.i b/src/include/btree.i index 781647ad440..3234ad1ed41 100644 --- a/src/include/btree.i +++ b/src/include/btree.i @@ -166,7 +166,7 @@ __wt_cache_page_byte_dirty_decr( { WT_CACHE *cache; const char *destname; - size_t *dest; + uint64_t *dest; size_t decr, orig; int i; @@ -328,8 +328,8 @@ __wt_cache_page_evict(WT_SESSION_IMPL *session, WT_PAGE *page) { WT_CACHE *cache; WT_PAGE_MODIFY *modify; + uint64_t *dest; const char *destname; - size_t *dest; cache = S2C(session)->cache; dest = WT_PAGE_IS_INTERNAL(page) ? @@ -352,7 +352,7 @@ __wt_cache_page_evict(WT_SESSION_IMPL *session, WT_PAGE *page) /* Update the cache's dirty-byte count. */ if (modify != NULL && modify->bytes_dirty != 0) { - if (*dest < modify->bytes_dirty) { + if ((size_t)*dest < modify->bytes_dirty) { __wt_errx(session, "%s decrement failed: " "dirty byte count went negative", destname); |