Commit 1ae91ab3 authored by deuce's avatar deuce
Browse files

Fix bug with long to uint32_t assignment introducted in the Great Warning

Silencing of 2012.

Problem reported by Xeon927.
parent ba275d3e
......@@ -134,15 +134,17 @@ void sbbs_t::readmail(uint usernumber, int which)
ASYNC;
if(!(sys_status&SS_ABORT)) {
bprintf(text[StartWithN],1L);
if((long)(smb.curmsg=getnum(smb.msgs))>0)
smb.curmsg--;
else if((long)smb.curmsg==-1) {
l=getnum(smb.msgs);
if(l>0)
smb.curmsg=l-1;
else if(l==-1) {
free(mail);
smb_close(&smb);
smb_stack(&smb,SMB_STACK_POP);
return;
return;
}
else
smb.curmsg=l;
}
sys_status&=~SS_ABORT;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment