summaryrefslogtreecommitdiffstatshomepage
path: root/py/stream.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-19 16:02:09 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-19 16:02:09 +0000
commita11ceca807bd7a958c3d45ce02fe23cda0085f7d (patch)
treec2da00732cfd5343de5e2ead9adc9dbd7826952d /py/stream.c
parent136b149e417314e5ad46b3ee78b811df57e74f41 (diff)
downloadmicropython-a11ceca807bd7a958c3d45ce02fe23cda0085f7d.tar.gz
micropython-a11ceca807bd7a958c3d45ce02fe23cda0085f7d.zip
Change int to uint for n_args in function with variable arguments.
Diffstat (limited to 'py/stream.c')
-rw-r--r--py/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/stream.c b/py/stream.c
index d5884ae819..d3a11affbc 100644
--- a/py/stream.c
+++ b/py/stream.c
@@ -12,7 +12,7 @@
static mp_obj_t stream_readall(mp_obj_t self_in);
-static mp_obj_t stream_read(int n_args, const mp_obj_t *args) {
+static mp_obj_t stream_read(uint n_args, const mp_obj_t *args) {
struct _mp_obj_base_t *o = (struct _mp_obj_base_t *)args[0];
if (o->type->stream_p.read == NULL) {
// CPython: io.UnsupportedOperation, OSError subclass
@@ -99,7 +99,7 @@ static mp_obj_t stream_readall(mp_obj_t self_in) {
}
// Unbuffered, inefficient implementation of readline() for raw I/O files.
-static mp_obj_t stream_unbuffered_readline(int n_args, const mp_obj_t *args) {
+static mp_obj_t stream_unbuffered_readline(uint n_args, const mp_obj_t *args) {
struct _mp_obj_base_t *o = (struct _mp_obj_base_t *)args[0];
if (o->type->stream_p.read == NULL) {
// CPython: io.UnsupportedOperation, OSError subclass