cls_rgw: fix warning

cls/rgw/cls_rgw.cc: In function 'int get_obj_vals(cls_method_context_t, const string&, const string&, int, std::map, ceph::buffer::list>*)':
warning: cls/rgw/cls_rgw.cc:175:28: narrowing conversion of '129' from 'int' to 'char' inside { } is ill-formed in C++11 [-Wnarrowing]

on arm7l

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-07-14 16:36:21 -07:00
parent 9baa66801a
commit bc3088c92f

View File

@ -172,7 +172,7 @@ static int get_obj_vals(cls_method_context_t hctx, const string& start, const st
return 0;
map<string, bufferlist> new_keys;
char c[] = { BI_PREFIX_CHAR + 1, 0 };
char c[] = { (char)(BI_PREFIX_CHAR + 1), 0 };
string new_start = c;
/* now get some more keys */