summaryrefslogtreecommitdiff
path: root/protocols/Twitter/src/utility.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-29 18:22:03 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-29 18:22:03 +0000
commit7632fc0137f2eda2cddb02c07a7ad3f987a38e58 (patch)
tree681c70f7eaa0749c2b391b53bb3b77926e9b0741 /protocols/Twitter/src/utility.cpp
parent343e3cb94c2985078f3e2e0510a024ecfa58b87f (diff)
fix for 64 bit integers
git-svn-id: http://svn.miranda-ng.org/main/trunk@13250 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/src/utility.cpp')
-rw-r--r--protocols/Twitter/src/utility.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Twitter/src/utility.cpp b/protocols/Twitter/src/utility.cpp
index dcdda75a9e..4956a6404c 100644
--- a/protocols/Twitter/src/utility.cpp
+++ b/protocols/Twitter/src/utility.cpp
@@ -40,6 +40,11 @@ std::string int2str(uint64_t iVal)
return std::string(buf);
}
+uint64_t str2int(const std::string &str)
+{
+ return atoll(str.c_str());
+}
+
http::response mir_twitter::slurp(const std::string &url, http::method meth, OAuthParameters postParams)
{
NETLIBHTTPREQUEST req = { sizeof(req) };