Prevent underflow 87/132587/1
authorKichan Kwon <k_c.kwon@samsung.com>
Wed, 7 Jun 2017 04:52:14 +0000 (13:52 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Wed, 7 Jun 2017 04:54:22 +0000 (13:54 +0900)
commit356f555661595d48c1d47d0f364fe57b6ab685cc
tree6f4eba518a7e5612a02c0c58dc4adc95584c993c
parentaa00edb04d7847ce68e60c18cac97fea4dfc996d
Prevent underflow

- If val is large negative, it can be underflow
- In addition, tiny optimization is applied

Change-Id: I9fd7f52a60c8b7e26fc9c8a3765f17ec185429d4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
src/runtime_info_usage.c