about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/http11_java/org/jruby/mongrel/Http11.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/http11_java/org/jruby/mongrel/Http11.java b/ext/http11_java/org/jruby/mongrel/Http11.java
index 3a6699e..3dbfdd6 100644
--- a/ext/http11_java/org/jruby/mongrel/Http11.java
+++ b/ext/http11_java/org/jruby/mongrel/Http11.java
@@ -247,7 +247,7 @@ public class Http11 extends RubyObject {
             if(this.hp.has_error()) {
                 throw new RaiseException(runtime, eHttpParserError, "Invalid HTTP format, parsing fails.", true);
             } else {
-                return runtime.newFixnum(this.hp.parser.nread);
+                return runtime.newFixnum((long)this.hp.parser.nread);
             }
         }
     }