]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Get rid of compiler warning on 64-bit
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 25 Aug 2007 17:08:59 +0000 (17:08 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 25 Aug 2007 17:08:59 +0000 (17:08 +0000)
Objects/stringlib/string_format.h

index 58032165d34ec0a6e70ece31e77525cc51e2d00e..b81a7e384a3d6222c996e896f615057067967fa5 100644 (file)
@@ -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 */