From 6475b110c06ebd29fda4e4d8104e9cb121c99eeb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 7 Jun 2012 15:23:57 +0000 Subject: various 64-bit compilation issues git-svn-id: http://svn.miranda-ng.org/main/trunk@356 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/connection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/Twitter/connection.cpp') diff --git a/protocols/Twitter/connection.cpp b/protocols/Twitter/connection.cpp index b32ceb5cea..c303bc297e 100644 --- a/protocols/Twitter/connection.cpp +++ b/protocols/Twitter/connection.cpp @@ -104,21 +104,21 @@ bool TwitterProto::NegotiateConnection() wstring oauthAccessTokenSecret; string screenName; - int dbTOK = DBGetContactSettingWString(0,m_szModuleName,TWITTER_KEY_OAUTH_TOK,&dbv); + INT_PTR dbTOK = DBGetContactSettingWString(0,m_szModuleName,TWITTER_KEY_OAUTH_TOK,&dbv); if (!dbTOK) { oauthToken = dbv.pwszVal; DBFreeVariant(&dbv); //WLOG("**NegotiateConnection - we have an oauthToken already in the db - %s", oauthToken); } - int dbTOKSec = DBGetContactSettingWString(0,m_szModuleName,TWITTER_KEY_OAUTH_TOK_SECRET,&dbv); + INT_PTR dbTOKSec = DBGetContactSettingWString(0,m_szModuleName,TWITTER_KEY_OAUTH_TOK_SECRET,&dbv); if (!dbTOKSec) { oauthTokenSecret = dbv.pwszVal; DBFreeVariant(&dbv); //WLOG("**NegotiateConnection - we have an oauthTokenSecret already in the db - %s", oauthTokenSecret); } - int dbName = DBGetContactSettingString(0,m_szModuleName,TWITTER_KEY_NICK,&dbv); + INT_PTR dbName = DBGetContactSettingString(0,m_szModuleName,TWITTER_KEY_NICK,&dbv); if (!dbName) { screenName = dbv.pszVal; DBFreeVariant(&dbv); @@ -591,7 +591,7 @@ void TwitterProto::UpdateStatuses(bool pre_read, bool popups, bool tweetToMsg) DBEVENTINFO dbei = {sizeof(dbei)}; dbei.pBlob = (BYTE*)(i->status.text.c_str()); - dbei.cbBlob = i->status.text.size()+1; + dbei.cbBlob = (int)i->status.text.size()+1; dbei.eventType = TWITTER_DB_EVENT_TYPE_TWEET; dbei.flags = DBEF_UTF; dbei.flags = DBEF_READ; // i had commented this line out.. can't remember why :( might need to do it again, uncommented for mrQQ for testing -- cgit v1.2.3