From bab98ab969cd1df0452c4f6eed92f8935345cdc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Br=C3=A9gier?= Date: Fri, 15 Jun 2012 20:40:44 +0300 Subject: [PATCH] Damn ! Fix typo and type needed for fix #399 for issue #398 --- .../handler/codec/http/multipart/AbstractDiskHttpData.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jboss/netty/handler/codec/http/multipart/AbstractDiskHttpData.java b/src/main/java/org/jboss/netty/handler/codec/http/multipart/AbstractDiskHttpData.java index 010bd1d55f..e1400cae67 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/multipart/AbstractDiskHttpData.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/multipart/AbstractDiskHttpData.java @@ -292,8 +292,8 @@ public abstract class AbstractDiskHttpData extends AbstractHttpData { int chunkSize = 8196; long position = 0; while (position < size) { - if (chunksize < size - position) { - chunksize = size - position; + if (chunkSize < size - position) { + chunkSize = (int) (size - position); } position += in.transferTo(position, chunkSize , out); }