]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rgw: fix warning
authorSage Weil <sage@inktank.com>
Sun, 14 Jul 2013 23:36:21 +0000 (16:36 -0700)
committerSage Weil <sage@inktank.com>
Sun, 14 Jul 2013 23:36:21 +0000 (16:36 -0700)
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>
src/cls/rgw/cls_rgw.cc

index 4361608e2713c738f090836d1949a0ea8209287b..a972d6a1fddf5a00f7160b838a839f59cb100e0a 100644 (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 */