# HG changeset patch # User Mychaela Falconia # Date 1513367898 0 # Node ID 562fa85c8963e867a2390ddb7de93192b42b7df1 # Parent e0b27310e6ba4fefbf537364a919307b2a116b86 FCHG battery table loading: comparison signedness issue diff -r e0b27310e6ba -r 562fa85c8963 src/cs/drivers/drv_app/fchg/fchg_ffs_init.c --- a/src/cs/drivers/drv_app/fchg/fchg_ffs_init.c Fri Dec 15 19:13:22 2017 +0000 +++ b/src/cs/drivers/drv_app/fchg/fchg_ffs_init.c Fri Dec 15 19:58:18 2017 +0000 @@ -37,7 +37,7 @@ rc = ffs_file_read("/etc/batterytab", pwr_ctrl->batt_thresholds, sizeof(pwr_ctrl->batt_thresholds)); - if (rc >= sizeof(T_PWR_THRESHOLDS)) { + if (rc >= (int)sizeof(T_PWR_THRESHOLDS)) { pwr_ctrl->nb_thresholds = rc / sizeof(T_PWR_THRESHOLDS); rvf_send_trace("FCHG: battery table loaded from FFS", 35, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_HIGH,