From 942a89cf30d66a2202cd8ad35734a54634250cdd Mon Sep 17 00:00:00 2001 From: wcohen Date: Wed, 16 May 2007 13:47:23 +0000 Subject: * control.c: Explicit type cast for picky compilers. --- runtime/transport/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/transport/control.c') diff --git a/runtime/transport/control.c b/runtime/transport/control.c index 34571e9a..dd927afd 100644 --- a/runtime/transport/control.c +++ b/runtime/transport/control.c @@ -139,7 +139,7 @@ static int _stp_ctl_write (int type, void *data, unsigned len) spin_unlock_irqrestore(&_stp_pool_lock, flags); bptr->type = type; - memcpy(bptr->buf, data, min(len, sizeof(bptr->buf))); + memcpy(bptr->buf, data, min((size_t) len, sizeof(bptr->buf))); bptr->len = len; /* put it on the pool of ready buffers */ -- cgit