aboutsummaryrefslogtreecommitdiffstats
path: root/src/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interface.c')
-rw-r--r--src/interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index 9f0be0982..43c8b3654 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -644,7 +644,7 @@ static void flushInterfaceBuffer(Interface * interface)
if (ret < 0)
break;
else if ((size_t)ret < buf->size) {
- assert(interface->deferred_bytes >= ret);
+ assert(interface->deferred_bytes >= (size_t)ret);
interface->deferred_bytes -= ret;
buf->data = (char *)buf->data + ret;
buf->size -= ret;