@@ -75,7 +75,7 @@ SEMP_PARSE_STATE * sempAllocateParseStructure(
7575 // Allocate the parser
7676 length = parseBytes + scratchPadBytes;
7777 parse = (SEMP_PARSE_STATE *)malloc (length + bufferLength);
78- sempPrintf (printDebug, " parse: %p" , parse);
78+ sempPrintf (printDebug, " parse: %p" , ( void *) parse);
7979
8080 // Initialize the parse structure
8181 if (parse)
@@ -84,13 +84,13 @@ SEMP_PARSE_STATE * sempAllocateParseStructure(
8484 memset (parse, 0 , length);
8585
8686 // Set the scratch pad area address
87- parse->scratchPad = ((void *)parse) + parseBytes;
87+ parse->scratchPad = ((uint8_t *)parse) + parseBytes;
8888 parse->printDebug = printDebug;
8989 sempPrintf (parse->printDebug , " parse->scratchPad: %p" , parse->scratchPad );
9090
9191 // Set the buffer address and length
9292 parse->bufferLength = bufferLength;
93- parse->buffer = (uint8_t *)( parse->scratchPad + scratchPadBytes);
93+ parse->buffer = (( uint8_t *)parse->scratchPad + scratchPadBytes);
9494 sempPrintf (parse->printDebug , " parse->buffer: %p" , parse->buffer );
9595 }
9696 return parse;
@@ -130,8 +130,8 @@ void sempPrintParserConfiguration(SEMP_PARSE_STATE *parse, Print *print)
130130 {
131131 sempPrintln (print, " SparkFun Extensible Message Parser" );
132132 sempPrintf (print, " Name: %p (%s)" , parse->parserName , parse->parserName );
133- sempPrintf (print, " parsers: %p" , parse->parsers );
134- sempPrintf (print, " parserNames: %p" , parse->parserNames );
133+ sempPrintf (print, " parsers: %p" , ( void *) parse->parsers );
134+ sempPrintf (print, " parserNames: %p" , ( void *) parse->parserNames );
135135 sempPrintf (print, " parserCount: %d" , parse->parserCount );
136136 sempPrintf (print, " printError: %p" , parse->printError );
137137 sempPrintf (print, " printDebug: %p" , parse->printDebug );
0 commit comments