Pls Help! Where is the Error ?

 
//Here is the error code

int BytesWriten = FileWriteStruct(filehandle,H4Info);

Error Info: possible loss of data due to type conversion

I really can't get it, the 2nd parameter of FileWriteStruct() H4Info is a struct below:

struct H4_SignalInfo{
   int BuyOrSell;
   datetime H8_AfterSignal;
};

Where is the conversion please.....?

Thanks a lot!

//add the file open code
int filehandle=FileOpen("H4_Signal_Info.txt",FILE_WRITE|FILE_TXT);


 
Weixing Meng:

Error Info: possible loss of data due to type conversion

I really can't get it, the 2nd parameter of FileWriteStruct() H4Info is a struct below:

Where is the conversion please.....?

Thanks a lot!


Solved...thanks for coming , the return type should be uint, not int , thank you again.

Reason: