Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
bfac7e38
Commit
bfac7e38
authored
Mar 05, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/sbbs3/str.cpp
src/sbbs3/str.cpp
+1
-1
No files found.
src/sbbs3/str.cpp
View file @
bfac7e38
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment