我有:
unsigned char *programBinary = (unsigned char) malloc(binarySize);
但我收到以下错误:
test.c:127:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
test.c:127:33: error: invalid type argument of unary ‘*’ (have ‘int’)
这对我来说相当新,所以我不确定如何解决这个问题。