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
ad781319
Commit
ad781319
authored
May 17, 2018
by
Simon Giesecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: ternary operator used with boolean literals\n\nSolution: Use comparison with 0 instead
parent
22b72bb6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
rep.cpp
src/rep.cpp
+1
-1
req.cpp
src/req.cpp
+1
-1
No files found.
src/rep.cpp
View file @
ad781319
...
...
@@ -52,7 +52,7 @@ int zmq::rep_t::xsend (msg_t *msg_)
return
-
1
;
}
bool
more
=
msg_
->
flags
()
&
msg_t
::
more
?
true
:
false
;
bool
more
=
(
msg_
->
flags
()
&
msg_t
::
more
)
!=
0
;
// Push message to the reply pipe.
int
rc
=
router_t
::
xsend
(
msg_
);
...
...
src/req.cpp
View file @
ad781319
...
...
@@ -126,7 +126,7 @@ int zmq::req_t::xsend (msg_t *msg_)
}
}
bool
more
=
msg_
->
flags
()
&
msg_t
::
more
?
true
:
false
;
bool
more
=
(
msg_
->
flags
()
&
msg_t
::
more
)
!=
0
;
int
rc
=
dealer_t
::
xsend
(
msg_
);
if
(
rc
!=
0
)
...
...
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