Fixes #1264 - CFN_GVAR_CST_MAX is 500, int16_t is needed