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(r) {
|
||||||
if(AA->Replyre() == REPLYRE_NUMERIC and not AA->isinternet()) {
|
if(AA->Replyre() == REPLYRE_NUMERIC and not AA->isinternet()) {
|
||||||
ISub subj;
|
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);
|
strcpy(msg->re, subj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1409,7 +1409,7 @@ void GotoReplies() {
|
|||||||
cursorbar = replies;
|
cursorbar = replies;
|
||||||
rlist[replies].msgno[0] = (n==list_max+1) ? '*' : '+';
|
rlist[replies].msgno[0] = (n==list_max+1) ? '*' : '+';
|
||||||
uint32_t msgno = CFG->switches.get(disprealmsgno) ? msgn : reln;
|
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));
|
maxmsgno = MaxV(maxmsgno, (uint)strlen(rlist[replies].msgno+1));
|
||||||
strcpy(rlist[replies].name, rmsg->by);
|
strcpy(rlist[replies].name, rmsg->by);
|
||||||
maxname = MaxV(maxname, (uint)strlen(rlist[replies].name));
|
maxname = MaxV(maxname, (uint)strlen(rlist[replies].name));
|
||||||
|
@ -68,7 +68,7 @@ void ChangeAttributes() {
|
|||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
void DecMargin() {
|
void DecMargin() {
|
||||||
|
|
||||||
if(CFG->dispmargin > (MAXCOL/3))
|
if(CFG->dispmargin > (MAXCOL/3))
|
||||||
CFG->dispmargin--;
|
CFG->dispmargin--;
|
||||||
else {
|
else {
|
||||||
@ -309,12 +309,12 @@ void GotoMsgno() {
|
|||||||
replies[replyn] = AA->Msgn.ToReln(reader_msg->link.list(replyn-1));
|
replies[replyn] = AA->Msgn.ToReln(reader_msg->link.list(replyn-1));
|
||||||
}
|
}
|
||||||
if(replyto)
|
if(replyto)
|
||||||
ptr += sprintf(ptr, " -%lu", replyto);
|
ptr += sprintf(ptr, " -%lu", long(replyto));
|
||||||
for(int replyn=0,plus=0; replyn<list_max+1; replyn++)
|
for(int replyn=0,plus=0; replyn<list_max+1; replyn++)
|
||||||
if(replies[replyn])
|
if(replies[replyn])
|
||||||
ptr += sprintf(ptr, " %s%lu", (plus++?"":"+"), replies[replyn]);
|
ptr += sprintf(ptr, " %s%lu", (plus++?"":"+"), long(replies[replyn]));
|
||||||
if(replynext)
|
if(replynext)
|
||||||
sprintf(ptr, " *%lu", replynext);
|
sprintf(ptr, " *%lu", long(replynext));
|
||||||
|
|
||||||
if(inhdr) {
|
if(inhdr) {
|
||||||
HeaderView->window.activate_quick();
|
HeaderView->window.activate_quick();
|
||||||
@ -333,7 +333,7 @@ void GotoMsgno() {
|
|||||||
|
|
||||||
std::string fbuf = buf;
|
std::string fbuf = buf;
|
||||||
gwinput2 iform(iwindow);
|
gwinput2 iform(iwindow);
|
||||||
iform.setup(C_HEADW, C_HEADW, C_HEADI, _box_table(W_BHEAD, 13), true);
|
iform.setup(C_HEADW, C_HEADW, C_HEADI, _box_table(W_BHEAD, 13), true);
|
||||||
iform.add_field(0, wrow, 8, 5, fbuf, 20, gwinput::cvt_none, gwinput::entry_new);
|
iform.add_field(0, wrow, 8, 5, fbuf, 20, gwinput::cvt_none, gwinput::entry_new);
|
||||||
vcurshow();
|
vcurshow();
|
||||||
iform.run(H_InputMsgno);
|
iform.run(H_InputMsgno);
|
||||||
@ -451,7 +451,7 @@ void ExitAsk() {
|
|||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
|
||||||
void NewArea(bool jumpnext) {
|
void NewArea(bool jumpnext) {
|
||||||
|
|
||||||
AA->attr().hex0();
|
AA->attr().hex0();
|
||||||
if(AA->isopen())
|
if(AA->isopen())
|
||||||
AA->Close();
|
AA->Close();
|
||||||
@ -775,7 +775,7 @@ void ReadPeekURLs(GMsg* msg) {
|
|||||||
if(CFG->urlhandler.options & EXTUTIL_PAUSE)
|
if(CFG->urlhandler.options & EXTUTIL_PAUSE)
|
||||||
pauseval = 1;
|
pauseval = 1;
|
||||||
|
|
||||||
ShellToDos(cmdline, "",
|
ShellToDos(cmdline, "",
|
||||||
CFG->urlhandler.options & EXTUTIL_CLS ? LGREY|_BLACK : 0,
|
CFG->urlhandler.options & EXTUTIL_CLS ? LGREY|_BLACK : 0,
|
||||||
CFG->urlhandler.options & EXTUTIL_CURSOR,
|
CFG->urlhandler.options & EXTUTIL_CURSOR,
|
||||||
pauseval
|
pauseval
|
||||||
|
@ -349,7 +349,7 @@ bool guserbase::edit_entry(uint idx) {
|
|||||||
if(dt)
|
if(dt)
|
||||||
window.prints(13, 38, wattr, strftimei(dbuf, 16, "%d %b %y", ggmtime(&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);
|
window.prints(13, width-11, wattr, dbuf);
|
||||||
|
|
||||||
addressbook_form form(window);
|
addressbook_form form(window);
|
||||||
|
@ -171,12 +171,12 @@ void GMsgHeaderView::Paint() {
|
|||||||
replies[replyn] = area->Msgn.ToReln(msg->link.list(replyn-1));
|
replies[replyn] = area->Msgn.ToReln(msg->link.list(replyn-1));
|
||||||
}
|
}
|
||||||
if(replyto)
|
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++)
|
for(int replyn=0,plus=0; (replyn<(list_max+1)) and (not attrsgenerated or ((ptr-buf)<CFG->disphdrnodeset.pos)); replyn++)
|
||||||
if(replies[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)))
|
if(replynext and (not attrsgenerated or ((ptr-buf)<CFG->disphdrnodeset.pos)))
|
||||||
sprintf(ptr, " *%lu", replynext);
|
sprintf(ptr, " *%lu", long(replynext));
|
||||||
throw_free(replies);
|
throw_free(replies);
|
||||||
|
|
||||||
strsetsz(buf, attrsgenerated ? CFG->disphdrnodeset.pos : width);
|
strsetsz(buf, attrsgenerated ? CFG->disphdrnodeset.pos : width);
|
||||||
|
Reference in New Issue
Block a user