fix static analyzer complains for ccv_numeric and ccv_basic