Commit bfac7e38 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix CID 174323: Unintended sign extension

At least, I think this fixes it.
parent c1bd5d23
Pipeline #2841 passed with stage
in 9 minutes and 41 seconds
......@@ -1196,7 +1196,7 @@ void sbbs_t::time_bank(void)
if(s>0) {
logline(" ","Credit to Minute Conversion");
useron.cdt=adjustuserrec(&cfg,useron.number,U_CDT,10,-(s*102400L));
useron.min=adjustuserrec(&cfg,useron.number,U_MIN,10,s*cfg.cdt_min_value);
useron.min=adjustuserrec(&cfg,useron.number,U_MIN,10,s*(int)cfg.cdt_min_value);
sprintf(str,"Credit Adjustment: %ld",-(s*102400L));
logline("$-",str);
sprintf(str,"Minute Adjustment: %u",s*cfg.cdt_min_value);
......
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