diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-11-20 23:27:32 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2012-11-20 23:27:32 +1100 |
commit | c4cd51ef491e8462752fc2468213c15804b5d0b9 (patch) | |
tree | 6ebd05905954638871cb74de31a2f2f145d3c369 /src/include/cell.i | |
parent | 1dfd060dd45ab5f2d6151ec298b59e478face7dc (diff) | |
download | mongo-c4cd51ef491e8462752fc2468213c15804b5d0b9.tar.gz |
Review uses of WT_ITEM::data, never cast it to a non-const pointer.
Diffstat (limited to 'src/include/cell.i')
-rw-r--r-- | src/include/cell.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/cell.i b/src/include/cell.i index 7a919d5ebe3..03139982622 100644 --- a/src/include/cell.i +++ b/src/include/cell.i @@ -674,7 +674,7 @@ __wt_cell_unpack_copy( WT_RET(__wt_cell_unpack_ref(session, unpack, store)); if (store->mem != NULL && store->data >= store->mem && - (uint8_t *)store->data < (uint8_t *)store->mem + store->memsize) + WT_PTRDIFF(store->data, store->mem) < store->memsize) return (0); return (__wt_buf_set(session, store, store->data, store->size)); } |