]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/picojson: Fix assignment-used-as-value warning
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 17 Jul 2020 00:53:45 +0000 (20:53 -0400)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 17 Jul 2020 18:17:39 +0000 (14:17 -0400)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/picojson/picojson.h

index a395bbc9f598718299c8928671e017da9d2a0dab..e85b66f379c8587453c669c1a5b356429f1a1108 100644 (file)
@@ -383,7 +383,7 @@ GET(array, *u_.array_)
 GET(object, *u_.object_)
 #ifdef PICOJSON_USE_INT64
 GET(double,
-    (type_ == int64_type && (const_cast<value *>(this)->type_ = number_type, const_cast<value *>(this)->u_.number_ = u_.int64_),
+    (type_ == int64_type && (const_cast<value *>(this)->type_ = number_type, (const_cast<value *>(this)->u_.number_ = u_.int64_)),
      u_.number_))
 GET(int64_t, u_.int64_)
 #else