error C2440: '=' : cannot convert from 'void *' to 'float (*)[3]'

错误显示: error C2440: '=' : cannot convert from 'void *' to 'float (*)[3]'
        Conversion from 'void*' to pointer to non-'void' requires an explicit cast

纠正:pCurrEpsd->pV = (float (*)[3])malloc( sizeof(pCurrEpsd->pV[0]) * nEntries );

你可能感兴趣的:(c,float)