summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-06-14 14:35:49 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-06-14 14:35:49 (GMT)
commitc72828ba3377a2139f36b8fdc9b0cbd5dd798712 (patch)
tree4135da978d25f22fe51772b96aa59fd350336366 /Python
parentb98a36e8f3006512f0fa4d94309fb9918eb8abdd (diff)
downloadcpython-c72828ba3377a2139f36b8fdc9b0cbd5dd798712.zip
cpython-c72828ba3377a2139f36b8fdc9b0cbd5dd798712.tar.gz
cpython-c72828ba3377a2139f36b8fdc9b0cbd5dd798712.tar.bz2
cleanup random.c
Casting Py_ssize_t to Py_ssize_t is useless.
Diffstat (limited to 'Python')
-rw-r--r--Python/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/random.c b/Python/random.c
index b961020..8ce0b3e 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -251,7 +251,7 @@ dev_urandom_noraise(unsigned char *buffer, Py_ssize_t size)
break;
}
buffer += n;
- size -= (Py_ssize_t)n;
+ size -= n;
}
close(fd);
}