Use bools, we have the technology

This commit is contained in:
Fabian Homborg
2020-09-24 17:21:49 +02:00
parent 4cb9f3224c
commit a776b08e84
6 changed files with 39 additions and 39 deletions

View File

@@ -110,7 +110,7 @@ static int parse_util_locate_brackets_of_type(const wchar_t *in, wchar_t **begin
// open_type is typically ( or [, and close type is the corresponding value.
wchar_t *pos;
wchar_t prev = 0;
int syntax_error = 0;
bool syntax_error = false;
int paran_count = 0;
wchar_t *paran_begin = nullptr, *paran_end = nullptr;
@@ -142,7 +142,7 @@ static int parse_util_locate_brackets_of_type(const wchar_t *in, wchar_t **begin
}
if (paran_count < 0) {
syntax_error = 1;
syntax_error = true;
break;
}
}