Fix types incompatibility
This commit is contained in:
parent
10613c469b
commit
909439d45f
@ -934,7 +934,7 @@ void MakeMsg(int mode, GMsg* omsg, bool ignore_replyto) {
|
||||
if(r) {
|
||||
if(AA->Replyre() == REPLYRE_NUMERIC and not AA->isinternet()) {
|
||||
ISub subj;
|
||||
sprintf(subj, "Re^%lu:%s", ((number+1) > number) ? (number+1) : number, r);
|
||||
sprintf(subj, "Re^%lu:%s", long(((number+1) > number) ? (number+1) : number), r);
|
||||
strcpy(msg->re, subj);
|
||||
}
|
||||
}
|
||||
|
@ -1409,7 +1409,7 @@ void GotoReplies() {
|
||||
cursorbar = replies;
|
||||
rlist[replies].msgno[0] = (n==list_max+1) ? '*' : '+';
|
||||
uint32_t msgno = CFG->switches.get(disprealmsgno) ? msgn : reln;
|
||||
sprintf(rlist[replies].msgno+1, "%lu", msgno);
|
||||
sprintf(rlist[replies].msgno+1, "%lu", long(msgno));
|
||||
maxmsgno = MaxV(maxmsgno, (uint)strlen(rlist[replies].msgno+1));
|
||||
strcpy(rlist[replies].name, rmsg->by);
|
||||
maxname = MaxV(maxname, (uint)strlen(rlist[replies].name));
|
||||
|
@ -309,12 +309,12 @@ void GotoMsgno() {
|
||||
replies[replyn] = AA->Msgn.ToReln(reader_msg->link.list(replyn-1));
|
||||
}
|
||||
if(replyto)
|
||||
ptr += sprintf(ptr, " -%lu", replyto);
|
||||
ptr += sprintf(ptr, " -%lu", long(replyto));
|
||||
for(int replyn=0,plus=0; replyn<list_max+1; replyn++)
|
||||
if(replies[replyn])
|
||||
ptr += sprintf(ptr, " %s%lu", (plus++?"":"+"), replies[replyn]);
|
||||
ptr += sprintf(ptr, " %s%lu", (plus++?"":"+"), long(replies[replyn]));
|
||||
if(replynext)
|
||||
sprintf(ptr, " *%lu", replynext);
|
||||
sprintf(ptr, " *%lu", long(replynext));
|
||||
|
||||
if(inhdr) {
|
||||
HeaderView->window.activate_quick();
|
||||
|
@ -349,7 +349,7 @@ bool guserbase::edit_entry(uint idx) {
|
||||
if(dt)
|
||||
window.prints(13, 38, wattr, strftimei(dbuf, 16, "%d %b %y", ggmtime(&dt)));
|
||||
|
||||
sprintf(dbuf, "%8ld", entry.times);
|
||||
sprintf(dbuf, "%8ld", long(entry.times));
|
||||
window.prints(13, width-11, wattr, dbuf);
|
||||
|
||||
addressbook_form form(window);
|
||||
|
@ -171,12 +171,12 @@ void GMsgHeaderView::Paint() {
|
||||
replies[replyn] = area->Msgn.ToReln(msg->link.list(replyn-1));
|
||||
}
|
||||
if(replyto)
|
||||
ptr += sprintf(ptr, " -%lu", replyto);
|
||||
ptr += sprintf(ptr, " -%lu", long(replyto));
|
||||
for(int replyn=0,plus=0; (replyn<(list_max+1)) and (not attrsgenerated or ((ptr-buf)<CFG->disphdrnodeset.pos)); replyn++)
|
||||
if(replies[replyn])
|
||||
ptr += sprintf(ptr, " %s%lu", (plus++?"":"+"), replies[replyn]);
|
||||
ptr += sprintf(ptr, " %s%lu", plus++?"":"+", long(replies[replyn]));
|
||||
if(replynext and (not attrsgenerated or ((ptr-buf)<CFG->disphdrnodeset.pos)))
|
||||
sprintf(ptr, " *%lu", replynext);
|
||||
sprintf(ptr, " *%lu", long(replynext));
|
||||
throw_free(replies);
|
||||
|
||||
strsetsz(buf, attrsgenerated ? CFG->disphdrnodeset.pos : width);
|
||||
|
Reference in New Issue
Block a user