|
From: <sv...@va...> - 2013-01-21 13:51:33
|
florian 2013-01-21 13:51:21 +0000 (Mon, 21 Jan 2013)
New Revision: 13252
Log:
Fix two asserts that Coverity's checker diagnosed as having side effects.
Modified files:
trunk/callgrind/main.c
Modified: trunk/callgrind/main.c (+2 -2)
===================================================================
--- trunk/callgrind/main.c 2013-01-21 13:46:57 +00:00 (rev 13251)
+++ trunk/callgrind/main.c 2013-01-21 13:51:21 +00:00 (rev 13252)
@@ -1300,7 +1300,7 @@
jmps_passed, hWordTy);
}
CLG_ASSERT(clgs.bb->cjmp_count == cJumps);
- CLG_ASSERT(clgs.bb->instr_count = clgs.ii_index);
+ CLG_ASSERT(clgs.bb->instr_count == clgs.ii_index);
/* Info for final exit from BB */
{
@@ -1336,7 +1336,7 @@
if (clgs.seen_before) {
CLG_ASSERT(clgs.bb->cost_count == update_cost_offsets(&clgs));
- CLG_ASSERT(clgs.bb->instr_len = clgs.instr_offset);
+ CLG_ASSERT(clgs.bb->instr_len == clgs.instr_offset);
}
else {
clgs.bb->cost_count = update_cost_offsets(&clgs);
|