Whether char is signed or not is implementation defined, and if char
is signed converting 255 to a char will turn a positive value into a
negative.
Silence the warning by converting explicitly.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
public:
class inode_meta_t {
public:
- inode_meta_t(snapid_t f = CEPH_NOSNAP, char t = 255, InodeStore* i = NULL):
+ inode_meta_t(snapid_t f = CEPH_NOSNAP, char t = char(255), InodeStore* i = NULL):
_f(f),_t(t),_i(i) {
};
snapid_t get_snapid() const {