@@ -76,7 +76,7 @@ SEMP_PARSE_STATE * sempAllocateParseStructure(
7676 // Allocate the parser
7777 length = parseBytes + scratchPadBytes;
7878 parse = (SEMP_PARSE_STATE *)malloc (length + bufferLength);
79- sempPrintf (printDebug, " parse: %p" , parse);
79+ sempPrintf (printDebug, " parse: %p" , ( void *) parse);
8080
8181 // Initialize the parse structure
8282 if (parse)
@@ -85,13 +85,13 @@ SEMP_PARSE_STATE * sempAllocateParseStructure(
8585 memset (parse, 0 , length);
8686
8787 // Set the scratch pad area address
88- parse->scratchPad = ((void *)parse) + parseBytes;
88+ parse->scratchPad = ((uint8_t *)parse) + parseBytes;
8989 parse->printDebug = printDebug;
9090 sempPrintf (parse->printDebug , " parse->scratchPad: %p" , parse->scratchPad );
9191
9292 // Set the buffer address and length
9393 parse->bufferLength = bufferLength;
94- parse->buffer = (uint8_t *)( parse->scratchPad + scratchPadBytes);
94+ parse->buffer = (( uint8_t *)parse->scratchPad + scratchPadBytes);
9595 sempPrintf (parse->printDebug , " parse->buffer: %p" , parse->buffer );
9696 }
9797 return parse;
@@ -131,8 +131,8 @@ void sempPrintParserConfiguration(SEMP_PARSE_STATE *parse, Print *print)
131131 {
132132 sempPrintln (print, " SparkFun Extensible Message Parser" );
133133 sempPrintf (print, " Name: %p (%s)" , parse->parserName , parse->parserName );
134- sempPrintf (print, " parsers: %p" , parse->parsers );
135- sempPrintf (print, " parserNames: %p" , parse->parserNames );
134+ sempPrintf (print, " parsers: %p" , ( void *) parse->parsers );
135+ sempPrintf (print, " parserNames: %p" , ( void *) parse->parserNames );
136136 sempPrintf (print, " parserCount: %d" , parse->parserCount );
137137 sempPrintf (print, " printError: %p" , parse->printError );
138138 sempPrintf (print, " printDebug: %p" , parse->printDebug );
0 commit comments