[求助]这个指针为什么会警告?
struct LedStruct
{
WORD SubVer;
short Num;
short CardType;
short Width;
short Height;
short Color;
WORD PagesPerPict;
WORD StartPageNum;
WORD TotalPicts;
short SendSteps;
short WaitTime;
short RemotePort;
short LocalPort;
BYTE Mode;
char LeadStr[10];
char LeadChar;
WORD LastPictPageIndex;
BOOL ServerMode;
};typedef struct LedStruct LedType;
typedef BYTE LineType[256];
void funciton1(short SendStep, long lpBuff,BYTE *cBuf)
{
LineType *xbuff;
.......
xbuff = (LineType*)lpBuff;
.....
}
编译时候,怎么会有个警告:cast to pointer from integer of different size. 那位大哥知道是怎么回事?