Commit 401c82a7 authored by Yoni Fogel's avatar Yoni Fogel

Explicitly cast val.len

to size_t (unsigned) to remove a warning.

git-svn-id: file:///svn/tokudb@2014 c7de825b-a66e-492c-adef-691d508d4ae1
parent 6dbdfb83
...@@ -89,7 +89,7 @@ static inline void toku_free_INTPAIRARRAY(INTPAIRARRAY val) { ...@@ -89,7 +89,7 @@ static inline void toku_free_INTPAIRARRAY(INTPAIRARRAY val) {
static inline int toku_copy_BYTESTRING(BYTESTRING *target, BYTESTRING val) { static inline int toku_copy_BYTESTRING(BYTESTRING *target, BYTESTRING val) {
target->len = val.len; target->len = val.len;
target->data = toku_memdup(val.data, val.len); target->data = toku_memdup(val.data, (size_t)val.len);
if (target->data==0) return errno; if (target->data==0) return errno;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment