Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
6a99bb04
Commit
6a99bb04
authored
May 18, 2016
by
evoskuil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: implicit integer narrowing cast warnings.
parent
d0180296
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
udp_engine.cpp
src/udp_engine.cpp
+3
-3
No files found.
src/udp_engine.cpp
View file @
6a99bb04
...
...
@@ -167,9 +167,9 @@ void zmq::udp_engine_t::sockaddr_to_msg (zmq::msg_t *msg, sockaddr_in* addr)
char
*
name
=
inet_ntoa
(
addr
->
sin_addr
);
char
port
[
6
];
sprintf
(
port
,
"%d"
,
(
int
)
ntohs
(
addr
->
sin_port
));
sprintf
(
port
,
"%d"
,
(
int
)
ntohs
(
addr
->
sin_port
));
int
size
=
strlen
(
name
)
+
strlen
(
port
)
+
1
+
1
;
// Colon + NULL
int
size
=
(
int
)
strlen
(
name
)
+
(
int
)
strlen
(
port
)
+
1
+
1
;
// Colon + NULL
int
rc
=
msg
->
init_size
(
size
);
errno_assert
(
rc
==
0
);
msg
->
set_flags
(
msg_t
::
more
);
...
...
@@ -188,7 +188,7 @@ int zmq::udp_engine_t::resolve_raw_address (char *name_, size_t length_)
// Find delimiter, cannot use memrchr as it is not supported on windows
if
(
length_
!=
0
)
{
int
chars_left
=
length_
;
int
chars_left
=
(
int
)
length_
;
char
*
current_char
=
name_
+
length_
;
do
{
if
(
*
(
--
current_char
)
==
':'
)
{
...
...
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