fix pointer/integer comparison comp failure

Change-Id: Ic4a9e184c2ddef32fde959495b2d3413f5bcee1b
Merge topic 'fix_charts_comp_failure' into master

ce7151bd fix pointer/integer comparison comp failure