From 10613c469baf6cfb372818280d8a1c9bd2df7f36 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Thu, 27 Oct 2005 19:49:46 +0000 Subject: [PATCH] Fix types incompatibility --- golded3/gectrl.cpp | 4 ++-- golded3/gemlst.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/golded3/gectrl.cpp b/golded3/gectrl.cpp index e485d5f..b50a47a 100644 --- a/golded3/gectrl.cpp +++ b/golded3/gectrl.cpp @@ -329,7 +329,7 @@ void DoKludges(int mode, GMsg* msg, int kludges) { strcpy(buf, msg->iorig); strchg(buf, '@', '.'); } - sprintf(buf2, "", getMsgId(), buf); + sprintf(buf2, "", long(getMsgId()), buf); throw_release(msg->messageid); msg->messageid = throw_strdup(buf2); CvtMessageIDtoMSGID(buf2, buf, AA->echoid(), "MSGID"); @@ -337,7 +337,7 @@ void DoKludges(int mode, GMsg* msg, int kludges) { } else { msg->orig.make_string(buf2, msg->odom); - sprintf(msg->msgids, "%s %08lx", buf2, getMsgId()); + sprintf(msg->msgids, "%s %08lx", buf2, long(getMsgId())); } if(CFG->switches.get(usemsgid) and strcmp(AA->basetype(), "PCBOARD")) { sprintf(buf, "\001MSGID: %s", msg->msgids); diff --git a/golded3/gemlst.cpp b/golded3/gemlst.cpp index 87ca1b5..2878982 100644 --- a/golded3/gemlst.cpp +++ b/golded3/gemlst.cpp @@ -326,7 +326,7 @@ void GMsgList::print_line(uint idx, uint pos, bool isbar) { strsetsz(dbuf, 10); else *dbuf = NUL; - sprintf(nbuf, "%5lu", CFG->switches.get(disprealmsgno) ? ml->msgno : AA->Msgn.ToReln(ml->msgno)); + sprintf(nbuf, "%5lu", long(CFG->switches.get(disprealmsgno) ? ml->msgno : AA->Msgn.ToReln(ml->msgno))); sprintf(buf, "%-5.5s%s%-*.*s %-*.*s%s%-*.*s %s", nbuf, ml->marks, bysiz, bysiz, ml->by, @@ -892,7 +892,7 @@ void GThreadlist::print_line(uint idx, uint pos, bool isbar) { marks[1] = MMRK_MARK; } - sprintf(buf, "%6lu %*c", CFG->switches.get(disprealmsgno) ? t.msgno : AA->Msgn.ToReln(t.msgno), tdlen, ' '); + sprintf(buf, "%6lu %*c", long(CFG->switches.get(disprealmsgno) ? t.msgno : AA->Msgn.ToReln(t.msgno)), tdlen, ' '); if(AA->Msglistdate() != MSGLISTDATE_NONE) { char dbuf[11];