comparison: fix match_inc()
commite00e93bf0ca500c7f3daf7f9a58992328421d83e
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 3 Aug 2017 11:14:24 +0000 (3 14:14 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 3 Aug 2017 11:14:24 +0000 (3 14:14 +0300)
tree7c24f3dad4f856bfe4316e7ef7b77b50e008cf0e
parent97cf367965045da58f62d71b0c447769758fc8b9
comparison: fix match_inc()

The bug here is that say we have "foo < bar" and we increment "foo++",
the problem is that's stored internally as "bar > foo" because it's stored
in alphabetical order.  We were incrementing bar instead of foo.  We have
to flip things around.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
smatch_comparison.c