Skip to content

Commit 596bfb9

Browse files
committed
Minor data type adjustment/coerce
1 parent 3c95595 commit 596bfb9

File tree

6 files changed

+442
-448
lines changed

6 files changed

+442
-448
lines changed

parser/base.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ void xx_parse_program(zval *return_value, char *program, size_t program_length,
110110
while (0 <= (scanner_status = xx_get_token(state, &token))) {
111111

112112
state->active_token = token.opcode;
113-
114113
state->start_length = (program + program_length - state->cursor);
115114

116115
switch (token.opcode) {
@@ -515,7 +514,7 @@ void xx_parse_program(zval *return_value, char *program, size_t program_length,
515514
default:
516515
parser_status->status = XX_PARSING_FAILED;
517516
if (error_msg && Z_TYPE_P(error_msg) != IS_ARRAY) {
518-
int length = (48 + strlen(file_path));
517+
size_t length = (48 + strlen(file_path));
519518
error = emalloc(sizeof(char) * length);
520519
snprintf(error, length, "Scanner: unknown opcode %d on in %s line %d", token.opcode, file_path, state->active_line);
521520

parser/lempar.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/** The author disclaims copyright to this source code.
2-
*/
31
/* First off, code is include which follows the "include" declaration
42
** in the input file. */
53
#include <stdio.h>

0 commit comments

Comments
 (0)