diff options
author | George Hazan <george.hazan@gmail.com> | 2016-03-04 17:55:53 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-03-04 17:55:53 +0000 |
commit | 56cfe30444ead1fb844ed5d5036ee91f49501331 (patch) | |
tree | a5d4987ab8f23236cc9de3253b850cd948cd5a1f /protocols/JabberG/src/jabber_rc.cpp | |
parent | ccf3bef719e71ccafe3a0bd154d0e85d7184a15b (diff) |
end of perversion with short ints (fixes #1204)
git-svn-id: http://svn.miranda-ng.org/main/trunk@16425 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_rc.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_rc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_rc.cpp b/protocols/JabberG/src/jabber_rc.cpp index caef4f795d..492d24b3df 100644 --- a/protocols/JabberG/src/jabber_rc.cpp +++ b/protocols/JabberG/src/jabber_rc.cpp @@ -310,7 +310,7 @@ int CJabberProto::AdhocSetStatusHandler(HXML, CJabberIqInfo *pInfo, CJabberAdhoc // priority
TCHAR szPriority[ 256 ];
- mir_sntprintf(szPriority, _T("%d"), (short)getWord("Priority", 5));
+ mir_sntprintf(szPriority, _T("%d"), (int)getDword("Priority", 5));
xNode << XCHILD(_T("field")) << XATTR(_T("label"), TranslateT("Priority")) << XATTR(_T("type"), _T("text-single"))
<< XATTR(_T("var"), _T("status-priority")) << XCHILD(_T("value"), szPriority);
@@ -364,7 +364,7 @@ int CJabberProto::AdhocSetStatusHandler(HXML, CJabberIqInfo *pInfo, CJabberAdhoc priority = _ttoi(ptszValue);
if (priority >= -128 && priority <= 127)
- setWord("Priority", (WORD)priority);
+ setDword("Priority", priority);
const TCHAR *szStatusMessage = NULL;
fieldNode = XmlGetChildByTag(xNode, "field", "var", _T("status-message"));
|