Skip to content

Commit

Permalink
rgw: Assign instead of compare
Browse files Browse the repository at this point in the history
Fixed:

** CID 1409697 (#1 of 1): Assign instead of compare (PW.ASSIGN_WHERE_COMPARE_MEANT)
1. assign_where_compare_meant: use of "=" where "==" may have been intended
2. primary_file: During compilation of file '/src/rgw/librgw.cc'

Signed-off-by: Amit Kumar amitkuma@redhat.com
  • Loading branch information
amitkuma committed Jul 28, 2017
1 parent 2c4ad54 commit eb9a93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_iam_policy.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ struct Condition {
try {
double d = std::stod(s, &p);
if (p == s.length()) {
return !((d == +0.0) || (d = -0.0) || std::isnan(d));
return !((d == +0.0) || (d == -0.0) || std::isnan(d));
}
} catch (const std::logic_error& e) {
// Fallthrough
Expand Down

0 comments on commit eb9a93b

Please sign in to comment.