aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dovecot-ceph-plugin/6-32bit.patch
blob: 0063cb0beb4bf38d1f3fcafe8bb700dce41e16fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
submitted as:
https://github.com/ceph-dovecot/dovecot-ceph-plugin/pull/275

--- a/src/librmb/rados-metadata.h
+++ b/src/librmb/rados-metadata.h
@@ -31,9 +31,9 @@
 
   RadosMetadata(enum rbox_metadata_key _key, const char* val) { convert(_key, val); }
 
-  RadosMetadata(enum rbox_metadata_key _key, const uint& val) { convert(_key, val); }
+  RadosMetadata(enum rbox_metadata_key _key, const uint32_t& val) { convert(_key, val); }
 
-  RadosMetadata(enum rbox_metadata_key _key, const size_t& val) { convert(_key, val); }
+  RadosMetadata(enum rbox_metadata_key _key, const uint64_t& val) { convert(_key, val); }
   RadosMetadata(enum rbox_metadata_key _key, const int val) { convert(_key, val); }
   ~RadosMetadata() {}
 
@@ -91,17 +91,17 @@
     bl.append(str.c_str(), str.length() + 1);
   }
 
-  void convert(enum rbox_metadata_key _key, const uint& value) {
+  void convert(enum rbox_metadata_key _key, const uint32_t& value) {
     bl.clear();
     key = librmb::rbox_metadata_key_to_char(_key);
     std::string val = std::to_string(value);
     bl.append(val.c_str(), val.length() + 1);
   }
 
-  void convert(enum rbox_metadata_key _key, const size_t& value) {
+  void convert(enum rbox_metadata_key _key, const uint64_t& value) {
     bl.clear();
     key = librmb::rbox_metadata_key_to_char(_key);
-    std::string val = std::to_string(static_cast<int>(value));
+    std::string val = std::to_string(static_cast<uint64_t>(value));
     bl.append(val.c_str(), val.length() + 1);
   }
   void convert(enum rbox_metadata_key _key, const int value) {