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
69a6b863
Commit
69a6b863
authored
May 14, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: C4267 warning test_spec_pushpull
Solution: Use unsigned char instead of size_t
parent
3cbc7cb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_spec_pushpull.cpp
tests/test_spec_pushpull.cpp
+3
-3
No files found.
tests/test_spec_pushpull.cpp
View file @
69a6b863
...
...
@@ -92,9 +92,9 @@ void test_pull_fair_queue_in (void *ctx)
rc
=
zmq_getsockopt
(
pull
,
ZMQ_LAST_ENDPOINT
,
connect_address
,
&
len
);
assert
(
rc
==
0
);
const
size_t
services
=
5
;
const
unsigned
char
services
=
5
;
void
*
pushs
[
services
];
for
(
size_t
peer
=
0
;
peer
<
services
;
++
peer
)
{
for
(
unsigned
char
peer
=
0
;
peer
<
services
;
++
peer
)
{
pushs
[
peer
]
=
zmq_socket
(
ctx
,
ZMQ_PUSH
);
assert
(
pushs
[
peer
]);
...
...
@@ -109,7 +109,7 @@ void test_pull_fair_queue_in (void *ctx)
int
second_half
=
0
;
// Send 2N messages
for
(
size_t
peer
=
0
;
peer
<
services
;
++
peer
)
{
for
(
unsigned
char
peer
=
0
;
peer
<
services
;
++
peer
)
{
char
*
str
=
strdup
(
"A"
);
str
[
0
]
+=
peer
;
...
...
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