Added cast to CMOCK_MEM_INDEX_SIZE for 16bit compiler