[Python-checkins] cpython (3.1): Fix typo in conditional.

georg.brandl python-checkins at python.org
Mon Feb 20 23:52:16 CET 2012


http://hg.python.org/cpython/rev/cd61c71a017c
changeset: 75088:cd61c71a017c
branch: 3.1
parent: 75071:11b09df370e7
user: Georg Brandl <georg at python.org>
date: Mon Feb 20 23:49:29 2012 +0100
summary:
 Fix typo in conditional.
files:
 Python/random.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Python/random.c b/Python/random.c
--- a/Python/random.c
+++ b/Python/random.c
@@ -269,7 +269,7 @@
 */
 
 env = Py_GETENV("PYTHONHASHSEED");
- if (env && *env != '0円' & strcmp(env, "random") != 0) {
+ if (env && *env != '0円' && strcmp(env, "random") != 0) {
 char *endptr = env;
 unsigned long seed;
 seed = strtoul(env, &endptr, 10);
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /