Skip to content

Commit

Permalink
Merge pull request #11552 from tchaikov/wip-fix-enc
Browse files Browse the repository at this point in the history
include/object: pass "snapid_t&" to bound_encode()

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
tchaikov committed Oct 19, 2016
2 parents 6d40a81 + dbebe41 commit 1945da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/object.h
Expand Up @@ -127,7 +127,7 @@ struct denc_traits<snapid_t> {
enum { supported = 2 };
enum { featured = false };
enum { bounded = true };
static void bound_encode(const snapid_t o, size_t& p) {
static void bound_encode(const snapid_t& o, size_t& p) {
denc(o.val, p);
}
static void encode(const snapid_t &o, buffer::list::contiguous_appender& p) {
Expand Down

0 comments on commit 1945da3

Please sign in to comment.