diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2017-01-26 16:54:04 -0700 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2017-01-26 16:54:04 -0700 |
commit | 699e49d2b1d0c3eca680bfc19e79aa8406f42d6a (patch) | |
tree | d7a63e1ca794ea83675dd9caaa308e76cd883840 /lib/parserel/src/parseRel.cc | |
parent | e36a3da23b104174084093882f939820dc4470e9 (diff) | |
download | chill-699e49d2b1d0c3eca680bfc19e79aa8406f42d6a.tar.gz chill-699e49d2b1d0c3eca680bfc19e79aa8406f42d6a.tar.bz2 chill-699e49d2b1d0c3eca680bfc19e79aa8406f42d6a.zip |
Diffstat (limited to 'lib/parserel/src/parseRel.cc')
-rw-r--r-- | lib/parserel/src/parseRel.cc | 2 |
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; } |