summaryrefslogtreecommitdiffstats
path: root/Python/random.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-06-14 14:36:00 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-06-14 14:36:00 (GMT)
commitd017176209d8317be1548e3775019149526324cb (patch)
treebc7ed79c441c9b4552765dad724215877940b7a9 /Python/random.c
parent370f5136d4c82778eabd9d808f6e73f6b9a8fad4 (diff)
parentc72828ba3377a2139f36b8fdc9b0cbd5dd798712 (diff)
downloadcpython-d017176209d8317be1548e3775019149526324cb.zip
cpython-d017176209d8317be1548e3775019149526324cb.tar.gz
cpython-d017176209d8317be1548e3775019149526324cb.tar.bz2
Merge 3.5
Diffstat (limited to 'Python/random.c')
-rw-r--r--Python/random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/random.c b/Python/random.c
index cbdebbe..8a83fe9 100644
--- a/Python/random.c
+++ b/Python/random.c
@@ -254,7 +254,7 @@ dev_urandom_noraise(unsigned char *buffer, Py_ssize_t size)
break;
}
buffer += n;
- size -= (Py_ssize_t)n;
+ size -= n;
}
close(fd);
}