Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
libktorrent
Commits
1994e46a
Commit
1994e46a
authored
Jul 24, 2022
by
Nicolas Fella
Browse files
Fix using std::min with Qt6
Otherwise it complains about mixing int and qsizetype
parent
329f3664
Pipeline
#208533
failed with stage
in 2 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/dht/key.cpp
View file @
1994e46a
...
...
@@ -36,7 +36,7 @@ Key::Key(const bt::Uint8 *d)
Key
::
Key
(
const
QByteArray
&
ba
)
{
memcpy
(
hash
,
ba
.
data
(),
std
::
min
(
20
,
ba
.
size
()));
memcpy
(
hash
,
ba
.
data
(),
std
::
min
(
20
,
static_cast
<
int
>
(
ba
.
size
()))
)
;
}
Key
::~
Key
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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