diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-25 17:08:59 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-25 17:08:59 (GMT) |
commit | 3ef6a57908ec5dca73351ab756d43e7b58b65609 (patch) | |
tree | 645ed5334b54f9cd06fcde5b646d0b250f42da8d /Objects | |
parent | ae2c876e0e3912b8562179de9e14f6cad98624bb (diff) | |
download | cpython-3ef6a57908ec5dca73351ab756d43e7b58b65609.zip cpython-3ef6a57908ec5dca73351ab756d43e7b58b65609.tar.gz cpython-3ef6a57908ec5dca73351ab756d43e7b58b65609.tar.bz2 |
Get rid of compiler warning on 64-bit
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/stringlib/string_format.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Objects/stringlib/string_format.h b/Objects/stringlib/string_format.h index 5803216..b81a7e3 100644 --- a/Objects/stringlib/string_format.h +++ b/Objects/stringlib/string_format.h @@ -621,10 +621,14 @@ MarkupIterator_next(MarkupIterator *self, int *is_markup, SubString *literal, at_end = self->str.ptr >= self->str.end; len = self->str.ptr - start; - if ((c == '}') && (at_end || (c != *self->str.ptr))) - return (int)SetError("Single } encountered"); - if (at_end && c == '{') - return (int)SetError("Single { encountered"); + if ((c == '}') && (at_end || (c != *self->str.ptr))) { + SetError("Single } encountered"); + return 0; + } + if (at_end && c == '{') { + SetError("Single { encountered"); + return 0; + } if (!at_end) { if (c == *self->str.ptr) { /* escaped } or {, skip it in the input */ |