[CI/FIX] Proper casts

This commit is contained in:
LDA 2024-10-11 20:03:41 +02:00
commit 1be19d4b8d

View file

@ -560,7 +560,7 @@ ParseeSendPresence(ParseeData *data)
char *chat_id = ParseeGetFromMUCID(data, muc); char *chat_id = ParseeGetFromMUCID(data, muc);
DbRef *chat = DbLockIntent(data->db, DB_HINT_READONLY, 2, "chats", chat_id); DbRef *chat = DbLockIntent(data->db, DB_HINT_READONLY, 2, "chats", chat_id);
uint64_t ts = GrabInteger(DbJson(chat), 1, "ts"); uint64_t ts = GrabInteger(DbJson(chat), 1, "ts");
int diff = ts ? (UtilTsMillis() - ts) / 1000 : -1; int diff = ts ? (int) ((UtilTsMillis() - ts) / 1000) : -1;
/* Make a fake user join the MUC */ /* Make a fake user join the MUC */
Log(LOG_NOTICE, "Sending presence to %s last=%ds", rev, diff); Log(LOG_NOTICE, "Sending presence to %s last=%ds", rev, diff);
XMPPJoinMUC(data->jabber, "parsee", rev, NULL, diff, false); XMPPJoinMUC(data->jabber, "parsee", rev, NULL, diff, false);