@@ -75,7 +75,7 @@ SEMP_PARSE_STATE * sempAllocateParseStructure(
75
75
// Allocate the parser
76
76
length = parseBytes + scratchPadBytes;
77
77
parse = (SEMP_PARSE_STATE *)malloc (length + bufferLength);
78
- sempPrintf (printDebug, " parse: %p" , parse);
78
+ sempPrintf (printDebug, " parse: %p" , ( void *) parse);
79
79
80
80
// Initialize the parse structure
81
81
if (parse)
@@ -84,13 +84,13 @@ SEMP_PARSE_STATE * sempAllocateParseStructure(
84
84
memset (parse, 0 , length);
85
85
86
86
// Set the scratch pad area address
87
- parse->scratchPad = ((void *)parse) + parseBytes;
87
+ parse->scratchPad = ((uint8_t *)parse) + parseBytes;
88
88
parse->printDebug = printDebug;
89
89
sempPrintf (parse->printDebug , " parse->scratchPad: %p" , parse->scratchPad );
90
90
91
91
// Set the buffer address and length
92
92
parse->bufferLength = bufferLength;
93
- parse->buffer = (uint8_t *)( parse->scratchPad + scratchPadBytes);
93
+ parse->buffer = (( uint8_t *)parse->scratchPad + scratchPadBytes);
94
94
sempPrintf (parse->printDebug , " parse->buffer: %p" , parse->buffer );
95
95
}
96
96
return parse;
@@ -130,8 +130,8 @@ void sempPrintParserConfiguration(SEMP_PARSE_STATE *parse, Print *print)
130
130
{
131
131
sempPrintln (print, " SparkFun Extensible Message Parser" );
132
132
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 );
135
135
sempPrintf (print, " parserCount: %d" , parse->parserCount );
136
136
sempPrintf (print, " printError: %p" , parse->printError );
137
137
sempPrintf (print, " printDebug: %p" , parse->printDebug );
0 commit comments