Shouldn't this return `riak_int32_t` since that's the type of the `len` arg?