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
0c9985d4
Commit
0c9985d4
authored
Mar 13, 2022
by
Rob Swindell
💬
Browse files
MSVC didn't like that use of std::min(), so just go back to a macro
parent
40f46c7e
Pipeline
#2895
passed with stage
in 9 minutes and 31 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/sbbs3/upload.cpp
src/sbbs3/upload.cpp
+1
-2
No files found.
src/sbbs3/upload.cpp
View file @
0c9985d4
...
...
@@ -22,7 +22,6 @@
#include "sbbs.h"
#include "sauce.h"
#include "filedat.h"
#include <algorithm>
/****************************************************************************/
/****************************************************************************/
...
...
@@ -171,7 +170,7 @@ bool sbbs_t::uploadfile(file_t* f)
}
if
(
cfg
.
dir
[
f
->
dir
]
->
misc
&
DIR_AONLY
)
/* Forced anonymous */
f
->
hdr
.
attr
|=
MSG_ANONYMOUS
;
uint32_t
cdt
=
(
uint32_t
)
std
::
min
(
length
,
(
off_t
)
UINT32_MAX
);
uint32_t
cdt
=
(
uint32_t
)
MIN
(
length
,
UINT32_MAX
);
smb_hfield_bin
(
f
,
SMB_COST
,
cdt
);
smb_hfield_str
(
f
,
SENDER
,
useron
.
alias
);
bprintf
(
text
[
FileNBytesReceived
],
f
->
name
,
i64toac
(
length
,
tmp
));
...
...
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