summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}