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