Get rid of compiler warning on 64-bit

This commit is contained in:
Neal Norwitz 2007-08-25 17:08:59 +00:00
parent ae2c876e0e
commit 3ef6a57908
1 changed files with 8 additions and 4 deletions

View File

@ -621,10 +621,14 @@ MarkupIterator_next(MarkupIterator *self, int *is_markup, SubString *literal,
at_end = self->str.ptr >= self->str.end; at_end = self->str.ptr >= self->str.end;
len = self->str.ptr - start; len = self->str.ptr - start;
if ((c == '}') && (at_end || (c != *self->str.ptr))) if ((c == '}') && (at_end || (c != *self->str.ptr))) {
return (int)SetError("Single } encountered"); SetError("Single } encountered");
if (at_end && c == '{') return 0;
return (int)SetError("Single { encountered"); }
if (at_end && c == '{') {
SetError("Single { encountered");
return 0;
}
if (!at_end) { if (!at_end) {
if (c == *self->str.ptr) { if (c == *self->str.ptr) {
/* escaped } or {, skip it in the input */ /* escaped } or {, skip it in the input */