diff options
author | George Hazan <ghazan@miranda.im> | 2017-09-21 23:08:34 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-09-21 23:08:34 +0300 |
commit | 8c2496120f46b59641cac79a431c51d12606a6dd (patch) | |
tree | a18dc51a5f024fcda5c7655eff9efce00bd96a0b /protocols/Discord/src/guilds.cpp | |
parent | de49de5f2c3fd25902a263b047ff8c71f5d43545 (diff) |
Discord: two more fixed comparisons
Diffstat (limited to 'protocols/Discord/src/guilds.cpp')
-rw-r--r-- | protocols/Discord/src/guilds.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp index 98f5d3dcaa..bd19bca92f 100644 --- a/protocols/Discord/src/guilds.cpp +++ b/protocols/Discord/src/guilds.cpp @@ -17,16 +17,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "stdafx.h" -int compareUsers(const CDiscordUser *p1, const CDiscordUser *p2); - static int compareRoles(const CDiscordRole *p1, const CDiscordRole *p2) { - return p1->id - p2->id; + return compareInt64(p1->id, p2->id); } static int compareChatUsers(const CDiscordGuildMember *p1, const CDiscordGuildMember *p2) { - return p1->userId - p2->userId; + return compareInt64(p1->userId, p2->userId); } CDiscordGuild::CDiscordGuild(SnowFlake _id) |