Andrew Leiper 0 Posted January 27, 2011 Report Share Posted January 27, 2011 Hi Pavel, boostc v7.01 PIC18F2525 //////////////////////////////////////// #include <system.h> #include <memory.h> typedef struct { char c; } TTestStruct; void InitNodeBuffer(TTestStruct *Node) { //error: arguments of 'memset8' don't match the parameters of call //I didn't think it should be necessary to cast Node to void* here ? memset(Node, 0, sizeof(TTestStruct)); memset((void*)Node, 0, sizeof(*Node)); //error: can't get size of the expression memset((void*)Node, 0, sizeof(TTestStruct)); //Compiles OK } //////////////////////////////////////// Cheers, Andy Leiper IET Ltd Quote Link to post Share on other sites
Pavel 0 Posted February 7, 2011 Report Share Posted February 7, 2011 Both are fixed. Fix will be available in 7.02. Thanks for reporting. Regards, Pavel Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.