Mercurial > cpython-lru_cache-weakref
diff Objects/stringlib/string_format.h @ 42834:20e1cc74e8ca
Get rid of compiler warning on 64-bit
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 25 Aug 2007 17:08:59 +0000 |
| parents | 5355337709e1 |
| children | 5fd65e250843 |
line wrap: on
line diff
--- a/Objects/stringlib/string_format.h Sat Aug 25 17:03:03 2007 +0000 +++ b/Objects/stringlib/string_format.h Sat Aug 25 17:08:59 2007 +0000 @@ -621,10 +621,14 @@ 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 */
