summaryrefslogtreecommitdiff
path: root/lib/parserel/src/parseRel.cc
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2017-01-26 16:54:04 -0700
committerTuowen Zhao <ztuowen@gmail.com>2017-01-26 16:54:04 -0700
commit699e49d2b1d0c3eca680bfc19e79aa8406f42d6a (patch)
treed7a63e1ca794ea83675dd9caaa308e76cd883840 /lib/parserel/src/parseRel.cc
parente36a3da23b104174084093882f939820dc4470e9 (diff)
downloadchill-699e49d2b1d0c3eca680bfc19e79aa8406f42d6a.tar.gz
chill-699e49d2b1d0c3eca680bfc19e79aa8406f42d6a.tar.bz2
chill-699e49d2b1d0c3eca680bfc19e79aa8406f42d6a.zip
bugfixesHEADclang
Diffstat (limited to 'lib/parserel/src/parseRel.cc')
-rw-r--r--lib/parserel/src/parseRel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parserel/src/parseRel.cc b/lib/parserel/src/parseRel.cc
index 43d7494..2c37138 100644
--- a/lib/parserel/src/parseRel.cc
+++ b/lib/parserel/src/parseRel.cc
@@ -63,7 +63,7 @@ simap_t* make_cond_item_add(simap_t* lhs, simap_t* rhs) {
simap_t* make_cond_item_sub(simap_t* lhs, simap_t* rhs) {
for(simap_t::iterator it = lhs->begin(); it != lhs->end(); it++)
- (*rhs)[it->first] -= it->second;
+ (*rhs)[it->first] = it->second - (*rhs)[it->first];
delete lhs;
return rhs;
}