]> granicus.if.org Git - python/commitdiff
[3.6] bpo-30854: Fix compile error when --without-threads (GH-2581) (#2583)
authorMasayuki Yamamoto <ma3yuki.8mamo10@gmail.com>
Wed, 5 Jul 2017 09:24:46 +0000 (18:24 +0900)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 5 Jul 2017 09:24:46 +0000 (11:24 +0200)
* bpo-30854: Fix compile error when --without-threads

* bpo-30854: fix news
(cherry picked from commit 0c3116309307ad2c7f8e2d2096612f4ab33cbb62)

Misc/NEWS.d/next/Build/2017-07-05-16-54-59.bpo-30854.sPADRI.rst [new file with mode: 0644]
Python/ceval.c

diff --git a/Misc/NEWS.d/next/Build/2017-07-05-16-54-59.bpo-30854.sPADRI.rst b/Misc/NEWS.d/next/Build/2017-07-05-16-54-59.bpo-30854.sPADRI.rst
new file mode 100644 (file)
index 0000000..f75aea4
--- /dev/null
@@ -0,0 +1,2 @@
+Fix compile error when compiling --without-threads.
+Patch by Masayuki Yamamoto.
index bf9103dd9aa4e34a5809adb2e073a98f8419096f..770dfcba89e513dc458f1e8d101730dfa75ddc88 100644 (file)
@@ -621,7 +621,7 @@ Py_MakePendingCalls(void)
         arg = pendingcalls[i].arg;
         pendingfirst = (i + 1) % NPENDINGCALLS;
         if (func(arg) < 0) {
-            goto error:
+            goto error;
         }
     }
     busy = 0;