aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/dropbox
diff options
context:
space:
mode:
authorAlexander Tkachev2016-05-31 19:32:16 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitca85d4482af0b2e570565d5aa6d562ec86b10100 (patch)
treee62fd73f8564a2eca3a619277db764af691aa923 /backends/cloud/dropbox
parent0d0033fb6ad00e3081bc2854ce5972746b603105 (diff)
downloadscummvm-rg350-ca85d4482af0b2e570565d5aa6d562ec86b10100.tar.gz
scummvm-rg350-ca85d4482af0b2e570565d5aa6d562ec86b10100.tar.bz2
scummvm-rg350-ca85d4482af0b2e570565d5aa6d562ec86b10100.zip
CLOUD: Use uint64 in StorageInfo
There was a warning regarding 25 GB constant. By the way, I'm not sure how to print uint64 (%llu is available in C99 only, and gcc produces a warning about that).
Diffstat (limited to 'backends/cloud/dropbox')
-rw-r--r--backends/cloud/dropbox/dropboxstorage.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/cloud/dropbox/dropboxstorage.cpp b/backends/cloud/dropbox/dropboxstorage.cpp
index 1aae73e524..263c2c8132 100644
--- a/backends/cloud/dropbox/dropboxstorage.cpp
+++ b/backends/cloud/dropbox/dropboxstorage.cpp
@@ -181,9 +181,9 @@ void DropboxStorage::infoInnerCallback(StorageInfoCallback outerCallback, Networ
Common::String name = info.getVal("display_name")->asString();
Common::String email = info.getVal("email")->asString();
Common::JSONObject quota = info.getVal("quota_info")->asObject();
- uint32 quotaNormal = quota.getVal("normal")->asIntegerNumber();
- uint32 quotaShared = quota.getVal("shared")->asIntegerNumber();
- uint32 quotaAllocated = quota.getVal("quota")->asIntegerNumber();
+ uint64 quotaNormal = quota.getVal("normal")->asIntegerNumber();
+ uint64 quotaShared = quota.getVal("shared")->asIntegerNumber();
+ uint64 quotaAllocated = quota.getVal("quota")->asIntegerNumber();
(*outerCallback)(StorageInfoResponse(nullptr, StorageInfo(uid, name, email, quotaNormal+quotaShared, quotaAllocated)));
delete outerCallback;
}
@@ -195,7 +195,7 @@ void DropboxStorage::infoMethodCallback(StorageInfoResponse response) {
debug("\nStorage info:");
debug("User name: %s", response.value.name().c_str());
debug("Email: %s", response.value.email().c_str());
- debug("Disk usage: %u/%u", response.value.used(), response.value.available());
+ debug("Disk usage: %u/%u", (uint32)response.value.used(), (uint32)response.value.available());
}
DropboxStorage *DropboxStorage::loadFromConfig(Common::String keyPrefix) {